- State parser fixes.

SVN r1255 (trunk)
This commit is contained in:
Christoph Oelckers 2008-10-05 18:45:05 +00:00
commit 0b120116ab
3 changed files with 8 additions and 4 deletions

View file

@ -59,12 +59,11 @@ extern void LoadDecorations ();
int GetSpriteIndex(const char * spritename)
{
// Make sure that the string is upper case and 4 characters long
char upper[5];
char upper[5]={0,0,0,0,0};
for (int i = 0; spritename[i] != 0 && i < 4; i++)
{
upper[i] = toupper (spritename[i]);
}
upper[4] = 0;
for (unsigned i = 0; i < sprites.Size (); ++i)
{