mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
tokenize(): Check all arguments
63a487d20d
only checked for the last
argument, not for all arguments.
Fixes #822.
This commit is contained in:
parent
63a487d20d
commit
aa439bff16
1 changed files with 7 additions and 6 deletions
|
@ -73,15 +73,16 @@ void scriptclass::tokenize( const std::string& t )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_zeroa(argexists);
|
if (tempword != "" && j < (int) SDL_arraysize(words))
|
||||||
|
|
||||||
if (j < (int) NUM_SCRIPT_ARGS)
|
|
||||||
{
|
|
||||||
argexists[j] = tempword != "";
|
|
||||||
if (argexists[j])
|
|
||||||
{
|
{
|
||||||
words[j] = tempword;
|
words[j] = tempword;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDL_zeroa(argexists);
|
||||||
|
|
||||||
|
for (size_t ii = 0; ii < NUM_SCRIPT_ARGS; ++ii)
|
||||||
|
{
|
||||||
|
argexists[ii] = words[ii] != "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue