Befor NewSurface Fix

This commit is contained in:
2018-06-29 15:28:06 -04:00
parent 0a17c2cfe7
commit f85ff9fa96
10 changed files with 94 additions and 22 deletions
@@ -77,7 +77,8 @@ const bool cVideo::Setup()
void cVideo::CleanUp()
{
SDL_DestroyWindow(mp_window);
if (mp_window != nullptr)
SDL_DestroyWindow(mp_window);
mp_window = nullptr;
}