- cheat list fixed.

This commit is contained in:
Christoph Oelckers 2020-07-04 22:03:22 +02:00
parent 7688390b2d
commit 2c494245ad

View file

@ -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))