mirror of https://github.com/snes9xgit/snes9x.git
Merge pull request #350 from marconett/macos-cheat-fix
macOS cheats: fixed variable rename oversight; typecasting
This commit is contained in:
commit
645f47187a
|
@ -273,7 +273,7 @@ static void InitCheatItems (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++)
|
||||
{
|
||||
citem[i].valid = true;
|
||||
|
|
|
@ -1297,7 +1297,7 @@ static void CheatFinderHandleAddEntryButton (WindowData *cf)
|
|||
if (cfAddress[cfListSelection] > (0x20000 - cfViewNumBytes))
|
||||
PlayAlertSound();
|
||||
else
|
||||
if (Cheat.g.size() + cfViewNumBytes > MAX_CHEATS)
|
||||
if (Cheat.g.size() + cfViewNumBytes > MAC_MAX_CHEATS)
|
||||
AppearanceAlert(kAlertCautionAlert, kS9xMacAlertCFCantAddEntry, kS9xMacAlertCFCantAddEntryHint);
|
||||
else
|
||||
CheatFinderBeginAddEntrySheet(cf);
|
||||
|
|
Loading…
Reference in New Issue