diff --git a/Adventures in Lestoria/AdventuresInLestoria.cpp b/Adventures in Lestoria/AdventuresInLestoria.cpp index 4f021a8d..91186c4d 100644 --- a/Adventures in Lestoria/AdventuresInLestoria.cpp +++ b/Adventures in Lestoria/AdventuresInLestoria.cpp @@ -327,10 +327,12 @@ bool AiL::OnUserCreate(){ }else{ std::cout<<"Steam API failed to initialize!"<SetWarningMessageHook([](int severity,const char*message){ - std::cout<Init(false); + if(SteamAPI_IsSteamRunning()){ + SteamUtils()->SetWarningMessageHook([](int severity,const char*message){ + std::cout<Init(false); + } #endif gameInitialized=true; diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index 3f03f07b..21438e3f 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 0 #define VERSION_MINOR 5 #define VERSION_PATCH 1 -#define VERSION_BUILD 8219 +#define VERSION_BUILD 8221 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index cc7e50cd..b488aed0 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ