From 59fce59a2628bff18fc008a48ba09d387fc10008 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 3 Nov 2019 12:46:53 +0100 Subject: [PATCH] - fixed god mode being activated automatically, thanks to a variable that got initialized in the wrong place. --- source/duke3d/src/osdcmds.cpp | 2 +- source/rr/src/osdcmds.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/duke3d/src/osdcmds.cpp b/source/duke3d/src/osdcmds.cpp index c65155c07..b9a377019 100644 --- a/source/duke3d/src/osdcmds.cpp +++ b/source/duke3d/src/osdcmds.cpp @@ -37,7 +37,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. BEGIN_DUKE_NS -struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat; +struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat = { -1, 0, 0 }; static inline int osdcmd_quit(osdcmdptr_t UNUSED(parm)) { diff --git a/source/rr/src/osdcmds.cpp b/source/rr/src/osdcmds.cpp index a72444b39..0773fa93b 100644 --- a/source/rr/src/osdcmds.cpp +++ b/source/rr/src/osdcmds.cpp @@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. BEGIN_RR_NS -struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat; +struct osdcmd_cheatsinfo osdcmd_cheatsinfo_stat = { -1, 0, 0 }; static inline int osdcmd_quit(osdcmdptr_t UNUSED(parm)) {