mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -3565,6 +3565,10 @@ void scriptclass::hardreset(void)
|
|||||||
scriptdelay = 0;
|
scriptdelay = 0;
|
||||||
scriptname = "null";
|
scriptname = "null";
|
||||||
running = false;
|
running = false;
|
||||||
|
for (size_t ii = 0; ii < SDL_arraysize(words); ++ii)
|
||||||
|
{
|
||||||
|
words[ii] = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void scriptclass::loadcustom(const std::string& t)
|
void scriptclass::loadcustom(const std::string& t)
|
||||||
|
|||||||
Reference in New Issue
Block a user