From 4d3a6dca8cc1513070913a70111a0707621579a0 Mon Sep 17 00:00:00 2001 From: nastys Date: Sun, 9 Aug 2020 02:56:41 +0000 Subject: [PATCH] Fix mouth patches (hopefully) --- source-code/source/plugins/Patches/dllmain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source-code/source/plugins/Patches/dllmain.cpp b/source-code/source/plugins/Patches/dllmain.cpp index cf07253..c7d20a7 100644 --- a/source-code/source/plugins/Patches/dllmain.cpp +++ b/source-code/source/plugins/Patches/dllmain.cpp @@ -843,7 +843,7 @@ void ApplyPatches() { int* mouth_table = (int*)(0x1409A1DC0); DWORD oldProtect; VirtualProtect(mouth_table, 44, PAGE_EXECUTE_READWRITE, &oldProtect); - for (int i = 0; i < 11; i++) + for (int i = 0; i < 10; i++) { mouth_table[i]++; } @@ -856,7 +856,7 @@ void ApplyPatches() { int* mouth_table_oldid = (int*)(0x1409A1E1C); DWORD oldProtect; VirtualProtect(mouth_table_oldid, 44, PAGE_EXECUTE_READWRITE, &oldProtect); - for (int i = 0; i < 11; i++) + for (int i = 0; i < 10; i++) { mouth_table_oldid[i]--; }