From ad842130d3aa0ed1a662a84cd2854bf9fed42971 Mon Sep 17 00:00:00 2001 From: Silent Date: Wed, 25 Sep 2019 21:02:11 +0200 Subject: [PATCH] III: Fix pattern for IsAudioInitialised failing with a Steam version --- SilentPatchIII/SilentPatchIII.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index 41778da..6fdc3f4 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -469,7 +469,7 @@ namespace Localization // ============= Call cDMAudio::IsAudioInitialised before adding one shot sounds, like in VC ============= namespace AudioInitializedFix { - auto IsAudioInitialised = (bool(*)())Memory::ReadCallFrom( hook::get_pattern( "E8 ? ? ? ? 84 C0 74 6C 0F B7 47 10" ) ); + auto IsAudioInitialised = static_cast(Memory::ReadCallFrom( hook::get_pattern( "E8 ? ? ? ? 84 C0 74 ? 0F B7 47 10" ) )); void* (*operatorNew)(size_t size); void* operatorNew_InitializedCheck( size_t size )