- cheat list fixed.

This commit is contained in:
Christoph Oelckers 2020-07-04 22:03:22 +02:00
parent 7688390b2d
commit 2c494245ad
1 changed files with 3 additions and 2 deletions

View File

@ -30,12 +30,12 @@
#include "printf.h" #include "printf.h"
#include "gamestruct.h" #include "gamestruct.h"
static cheatseq_t *cheats; static cheatseq_t *cheatlist;
static int numcheats; static int numcheats;
void SetCheats(cheatseq_t *cht, int count) void SetCheats(cheatseq_t *cht, int count)
{ {
cheats = cht; cheatlist = cht;
numcheats = count; numcheats = count;
} }
@ -99,6 +99,7 @@ bool Cheat_Responder (event_t *ev)
{ {
int i; int i;
auto cheats = cheatlist;
for (i = 0; i < numcheats; i++, cheats++) for (i = 0; i < numcheats; i++, cheats++)
{ {
if (CheatAddKey (cheats, (uint8_t)ev->data2, &eat)) if (CheatAddKey (cheats, (uint8_t)ev->data2, &eat))