Skip to content

Commit

Permalink
Fixed compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Friendly0Fire committed Jan 31, 2022
1 parent 9722919 commit ea07183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GW2Radial/src/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void Core::Init(HMODULE dll)
Log::i().Print(Severity::Info, "This is GW2Radial {}", GW2RADIAL_VER);

#ifndef _DEBUG
if(std::filesystem::exists(GetAddonFolder() / L"minidump.txt"))
if(auto addonFolder = GetAddonFolder(); addonFolder && std::filesystem::exists(*addonFolder / L"minidump.txt"))
#endif
{
// Install our own exception handler to automatically log minidumps.
Expand Down

0 comments on commit ea07183

Please sign in to comment.