diff --git a/SilentPatch/TheFLAUtils.cpp b/SilentPatch/TheFLAUtils.cpp index 5eb375a..2ba3afa 100644 --- a/SilentPatch/TheFLAUtils.cpp +++ b/SilentPatch/TheFLAUtils.cpp @@ -10,6 +10,10 @@ void FLAUtils::Init() HMODULE hFLA = GetModuleHandle("$fastman92limitAdjuster.asi"); if ( hFLA != nullptr ) { - GetExtendedIDFunc = reinterpret_cast(GetProcAddress( hFLA, "GetExtendedIDfrom16bitBefore" )); + auto function = reinterpret_cast(GetProcAddress( hFLA, "GetExtendedIDfrom16bitBefore" )); + if ( function != nullptr ) + { + GetExtendedIDFunc = function; + } } } \ No newline at end of file