diff --git a/source/core/cheathandler.cpp b/source/core/cheathandler.cpp index 085a2f57e..bdd9e215f 100644 --- a/source/core/cheathandler.cpp +++ b/source/core/cheathandler.cpp @@ -104,7 +104,7 @@ bool Cheat_Responder (event_t *ev) { if (CheatAddKey (cheats, (uint8_t)ev->data2, &eat)) { - if (cheats->DontCheck || !CheckCheatmode ()) + if (cheats->DontCheck || CheckCheatmode ()) { eat |= cheats->Handler (cheats); } diff --git a/source/libsmackerdec/src/SmackerDecoder.cpp b/source/libsmackerdec/src/SmackerDecoder.cpp index b210871a3..7b00caed8 100644 --- a/source/libsmackerdec/src/SmackerDecoder.cpp +++ b/source/libsmackerdec/src/SmackerDecoder.cpp @@ -46,6 +46,7 @@ #include "HuffmanVLC.h" #include "LogError.h" #include "printf.h" +#include "limits.h" #include #include