From 39feb29b1507cecf4dfacab73edefbf24163fab4 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 22 Oct 2020 00:27:49 +1100 Subject: [PATCH] Android version: Fix if you quit and return to game multiple times, you end up moving at hyperspeed --- src/Game.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Game.c b/src/Game.c index e04c7fd50..a597a5e30 100644 --- a/src/Game.c +++ b/src/Game.c @@ -628,6 +628,7 @@ void Game_Free(void* obj) { /* Set to false so components will always free managed textures too */ Gfx.ManagedTextures = false; Event_UnregisterAll(); + tasksCount = 0; for (comp = comps_head; comp; comp = comp->next) { if (comp->Free) comp->Free();