Permalink
Browse files

Cheats: Enable for any non-zero number.

  • Loading branch information...
unknownbrackets committed Nov 8, 2017
1 parent c62a53c commit bf4f5a102eed095a8d563913f3686070311e36e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 Core/CwCheat.cpp
View
@@ -150,7 +150,7 @@ void CheatFileParser::ParseLine(const std::string &line) {
case 'C':
// Cheat name and activation status.
if (line.length() >= 3 && line[2] == '1') {
if (line.length() >= 3 && line[2] >= '1' && line[2] <= '9') {
cheatEnabled_ = true;
} else if (line.length() >= 3 && line[2] == '0') {
cheatEnabled_ = false;

0 comments on commit bf4f5a1

Please sign in to comment.