From 7042c04f112f5f9dc1ca1430dfc470ed7d8dcd8d Mon Sep 17 00:00:00 2001 From: galaxyhaxz Date: Sun, 24 Jun 2018 09:07:06 -0500 Subject: [PATCH] Fix decomilation in trigs This one could cause memory leaks upon returning to a level. --- Source/trigs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/trigs.cpp b/Source/trigs.cpp index aa0b86268..0fc4c6a3a 100644 --- a/Source/trigs.cpp +++ b/Source/trigs.cpp @@ -1093,7 +1093,7 @@ void __cdecl Freeupstairs() v1 = trigflag[4]; do { - v2 = &nBlockTable[112 * *(v0 - 1) + 1830 + *v0]; + v2 = &dFlags[*(v0 - 1)-2][*v0-2]; /* v2 = &nBlockTable[112 * *(v0 - 1) + 1830 + *v0]; check */ v3 = 5; do {