From 8bab0afad106df943772080abf6dd4d0c09679cc Mon Sep 17 00:00:00 2001 From: nastys <@> Date: Sun, 9 Aug 2020 05:17:49 +0200 Subject: [PATCH] Revert "Fix mouth patches (hopefully)" This reverts commit 687cbc614bdc8d695ff6d869239f67c3467d5345. Revert mouth "fix" --- 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 c7d20a7..cf07253 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 < 10; i++) + for (int i = 0; i < 11; 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 < 10; i++) + for (int i = 0; i < 11; i++) { mouth_table_oldid[i]--; }