mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
tokenize(): Check all arguments
63a487d20d only checked for the last
argument, not for all arguments.
Fixes #822.
This commit is contained in:
@@ -73,15 +73,16 @@ void scriptclass::tokenize( const std::string& t )
|
||||
}
|
||||
}
|
||||
|
||||
if (tempword != "" && j < (int) SDL_arraysize(words))
|
||||
{
|
||||
words[j] = tempword;
|
||||
}
|
||||
|
||||
SDL_zeroa(argexists);
|
||||
|
||||
if (j < (int) NUM_SCRIPT_ARGS)
|
||||
for (size_t ii = 0; ii < NUM_SCRIPT_ARGS; ++ii)
|
||||
{
|
||||
argexists[j] = tempword != "";
|
||||
if (argexists[j])
|
||||
{
|
||||
words[j] = tempword;
|
||||
}
|
||||
argexists[ii] = words[ii] != "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user