1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-09 10:29:45 +01:00

Fix memset writing past bestframes

This commit is contained in:
Ethan Lee 2020-06-30 23:02:18 -04:00
parent 56c9a1554a
commit 3d8f53cfd2

View file

@ -213,7 +213,7 @@ void Game::init(void)
tele_crewstats.resize(6); tele_crewstats.resize(6);
quick_crewstats.resize(6); quick_crewstats.resize(6);
besttimes.resize(6, -1); besttimes.resize(6, -1);
::memset(bestframes, -1, sizeof(bestframes) * sizeof(int)); SDL_memset(bestframes, -1, sizeof(bestframes));
besttrinkets.resize(6, -1); besttrinkets.resize(6, -1);
bestlives.resize(6, -1); bestlives.resize(6, -1);
bestrank.resize(6, -1); bestrank.resize(6, -1);