From 85ede0cab9a3b8edcb04fd2acdc547798e71c15a Mon Sep 17 00:00:00 2001 From: xezon <4720891+xezon@users.noreply.github.com> Date: Thu, 19 Sep 2024 21:59:03 +0200 Subject: [PATCH] Fix mistake in Init_Memory_Manager --- src/game/common/system/gamememory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/common/system/gamememory.cpp b/src/game/common/system/gamememory.cpp index dfede1d90..fe0da08c3 100644 --- a/src/game/common/system/gamememory.cpp +++ b/src/game/common/system/gamememory.cpp @@ -94,6 +94,7 @@ void Init_Memory_Manager() captainslog_dbgassert(g_thePreMainInitFlag, "memory manager is already inited"); } +#if defined GAME_DEBUG // Check that new and delete both use our custom implementation. g_theLinkChecker = 0; @@ -111,6 +112,7 @@ void Init_Memory_Manager() captainslog_fatal("Wrong operator new/delete linked in! Fix this..."); exit(-1); } +#endif g_theMainInitFlag = true; }