diff options
Diffstat (limited to 'Stars45/Main.cpp')
-rw-r--r-- | Stars45/Main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Stars45/Main.cpp b/Stars45/Main.cpp index bd79886..dbb3a45 100644 --- a/Stars45/Main.cpp +++ b/Stars45/Main.cpp @@ -26,6 +26,7 @@ #include "MachineInfo.h" #include "Encrypt.h" #include "FormatUtil.h" +#include "Panic.h" #include "ParseUtil.h" #include "Random.h" #include "VersionInfo.h" @@ -132,8 +133,8 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, Token::close(); - if (*Game::GetPanicMessage()) - MessageBox(0, Game::GetPanicMessage(), "Starshatter - Error", MB_OK); + if (Panic::Panicked()) + MessageBox(0, Panic::Message(), "Starshatter - Error", MB_OK); } catch (const char* msg) { |