mirror of https://github.com/snes9xgit/snes9x.git
fixed variable rename oversight; typecasting
This commit is contained in:
parent
2a3cafb6b2
commit
5212cdb333
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue