From 330fa38f4c57fb6dbb19f44a719ab309e61723bd Mon Sep 17 00:00:00 2001 From: Silent Date: Tue, 20 Jun 2017 21:40:05 +0200 Subject: [PATCH] Fix for old FLA --- SilentPatch/TheFLAUtils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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