1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Finish objects at the right place

This commit is contained in:
Mathieu Schroeter 2017-02-02 18:01:56 +01:00
parent 061bfe9e2b
commit 8c111b9557

View File

@ -364,11 +364,6 @@ LRESULT CALLBACK WindowProc2 (HWND hWnd, UINT message,
}
}
break;
case WM_DESTROY:
FinishObjects();
PostQuitMessage(0);
break;
}
if (event)
@ -815,6 +810,7 @@ out:
SDL_DestroyWindow (g_window);
SDL_RemoveTimer (updateTimer);
FinishObjects ();
SDL_Quit ();
return static_cast<int> (msg.wParam);
}