From 2c494245ad79b85431d71631f161e1b044bf1bae Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 4 Jul 2020 22:03:22 +0200 Subject: [PATCH] - cheat list fixed. --- source/core/cheathandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/core/cheathandler.cpp b/source/core/cheathandler.cpp index c0ef989c2..085a2f57e 100644 --- a/source/core/cheathandler.cpp +++ b/source/core/cheathandler.cpp @@ -30,12 +30,12 @@ #include "printf.h" #include "gamestruct.h" -static cheatseq_t *cheats; +static cheatseq_t *cheatlist; static int numcheats; void SetCheats(cheatseq_t *cht, int count) { - cheats = cht; + cheatlist = cht; numcheats = count; } @@ -99,6 +99,7 @@ bool Cheat_Responder (event_t *ev) { int i; + auto cheats = cheatlist; for (i = 0; i < numcheats; i++, cheats++) { if (CheatAddKey (cheats, (uint8_t)ev->data2, &eat))