From 3d8f53cfd2a6b542411fc08402abce3d9fd3493c Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Tue, 30 Jun 2020 23:02:18 -0400 Subject: [PATCH] Fix memset writing past bestframes --- desktop_version/src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index db6917c7..91370d83 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -213,7 +213,7 @@ void Game::init(void) tele_crewstats.resize(6); quick_crewstats.resize(6); besttimes.resize(6, -1); - ::memset(bestframes, -1, sizeof(bestframes) * sizeof(int)); + SDL_memset(bestframes, -1, sizeof(bestframes)); besttrinkets.resize(6, -1); bestlives.resize(6, -1); bestrank.resize(6, -1);