mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Reset words array in hardreset()
Otherwise, levels could leave stale arguments in the array, and then the behavior of another level loaded right after might end up being different because of that.
This commit is contained in:
parent
580096dded
commit
c591b79daf
1 changed files with 4 additions and 0 deletions
|
@ -3565,6 +3565,10 @@ void scriptclass::hardreset(void)
|
|||
scriptdelay = 0;
|
||||
scriptname = "null";
|
||||
running = false;
|
||||
for (size_t ii = 0; ii < SDL_arraysize(words); ++ii)
|
||||
{
|
||||
words[ii] = "";
|
||||
}
|
||||
}
|
||||
|
||||
void scriptclass::loadcustom(const std::string& t)
|
||||
|
|
Loading…
Reference in a new issue