From d2709bc8708b72439bade20214dfd5f3482a34d2 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 10 Mar 2022 00:02:56 +0100 Subject: Fixed logic error in game loop condition --- Stars45/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45') diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp index e2364de..add37b1 100644 --- a/Stars45/Game.cpp +++ b/Stars45/Game.cpp @@ -736,7 +736,7 @@ Game::Run() // Polling messages from event queue until quit clock.Set(); - while (status < EXIT || Panic::Panicked()) { + while (status < EXIT && !Panic::Panicked()) { if (PeekMessage(&msg, hwnd, 0, 0, PM_REMOVE)) { if (msg.message == WM_QUIT) break; -- cgit v1.1