- State parser fixes.
SVN r1255 (trunk)
This commit is contained in:
parent
9adef560c2
commit
0b120116ab
3 changed files with 8 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue