Update sdlWindowMgr.cpp

This commit is contained in:
marauder2k7 2023-07-25 11:25:42 +01:00
parent 69ab86f87b
commit f452ea9823

View file

@ -68,6 +68,8 @@ PlatformWindowManagerSDL::PlatformWindowManagerSDL()
PlatformWindowManagerSDL::~PlatformWindowManagerSDL()
{
if (mWindowListHead == NULL)
return;
// Kill all our windows first.
while(mWindowListHead)
// The destructors update the list, so this works just fine.