diff --git a/src/ZoneUtils/ZoneUtils.hpp b/src/ZoneUtils/ZoneUtils.hpp index c4bbc36..9e2ed0c 100644 --- a/src/ZoneUtils/ZoneUtils.hpp +++ b/src/ZoneUtils/ZoneUtils.hpp @@ -8,6 +8,8 @@ // ======================================================== #pragma once +#include + #include #include #include @@ -165,7 +167,7 @@ namespace ZoneTool printf("[ ERROR ][ " __FUNCTION__ " ]: " __FMT__ "\n", __VA_ARGS__) #define ZONETOOL_FATAL(__FMT__,...) \ - printf("[ FATAL ][ " __FUNCTION__ " ]: " __FMT__ "\n", __VA_ARGS__) \ + printf("[ FATAL ][ " __FUNCTION__ " ]: " __FMT__ "\n", __VA_ARGS__); \ MessageBoxA(nullptr, &va("Oops! An unexpected error occured. Error was: " __FMT__ "\n\nZoneTool must be restarted to resolve the error. Last error code reported by windows: 0x%08X (%u)", __VA_ARGS__, GetLastError(), GetLastError())[0], nullptr, 0); \ std::exit(0)