1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02: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)