fixed variable rename oversight; typecasting

This commit is contained in:
Marco Nett 2018-06-28 22:45:43 +02:00
parent 2a3cafb6b2
commit 5212cdb333
No known key found for this signature in database
GPG Key ID: 853927109E11C145
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ static void InitCheatItems (void)
static void ImportCheatItems (void) static void ImportCheatItems (void)
{ {
int cheat_num = std::min(Cheat.g.size(), MAC_MAX_CHEATS); int cheat_num = std::min((int)Cheat.g.size(), MAC_MAX_CHEATS);
for (unsigned int i = 0; i < cheat_num; i++) for (unsigned int i = 0; i < cheat_num; i++)
{ {
citem[i].valid = true; citem[i].valid = true;

View File

@ -1297,7 +1297,7 @@ static void CheatFinderHandleAddEntryButton (WindowData *cf)
if (cfAddress[cfListSelection] > (0x20000 - cfViewNumBytes)) if (cfAddress[cfListSelection] > (0x20000 - cfViewNumBytes))
PlayAlertSound(); PlayAlertSound();
else else
if (Cheat.g.size() + cfViewNumBytes > MAX_CHEATS) if (Cheat.g.size() + cfViewNumBytes > MAC_MAX_CHEATS)
AppearanceAlert(kAlertCautionAlert, kS9xMacAlertCFCantAddEntry, kS9xMacAlertCFCantAddEntryHint); AppearanceAlert(kAlertCautionAlert, kS9xMacAlertCFCantAddEntry, kS9xMacAlertCFCantAddEntryHint);
else else
CheatFinderBeginAddEntrySheet(cf); CheatFinderBeginAddEntrySheet(cf);