Android version: Fix if you quit and return to game multiple times, you end up moving at hyperspeed

This commit is contained in:
UnknownShadow200 2020-10-22 00:27:49 +11:00
parent 174bbc6363
commit 39feb29b15

View File

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