1
0
Fork 0
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:
Misa 2021-08-25 11:12:23 -07:00
parent 580096dded
commit c591b79daf

View file

@ -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)