From bfdf49a3f7205c3fcd401dd1a8f089109f7cdcce Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 18 Oct 2018 21:35:54 +0200 Subject: [PATCH] Clean up debug.cpp --- Source/debug.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Source/debug.cpp b/Source/debug.cpp index c7a6f3e73..df9c3a80a 100644 --- a/Source/debug.cpp +++ b/Source/debug.cpp @@ -8,18 +8,16 @@ char dFlagDbg[NUMLEVELS][MAXDUNX][MAXDUNY]; void __cdecl LoadDebugGFX() { - if ( visiondebug ) - pSquareCel = LoadFileInMem("Data\\Square.CEL", 0); + if (visiondebug) + pSquareCel = LoadFileInMem("Data\\Square.CEL", 0); } // 525720: using guessed type int visiondebug; void __cdecl FreeDebugGFX() { - void *v0; // ecx - - v0 = pSquareCel; - pSquareCel = 0; - mem_free_dbg(v0); + void *temp = pSquareCel; + pSquareCel = NULL; + mem_free_dbg(temp); } void __cdecl CheckDungeonClear()