summaryrefslogtreecommitdiff
path: root/macosx/CheatController.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/CheatController.m')
-rw-r--r--macosx/CheatController.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/CheatController.m b/macosx/CheatController.m
index 14dbd408..4b0fc736 100644
--- a/macosx/CheatController.m
+++ b/macosx/CheatController.m
@@ -279,7 +279,7 @@
- (void)editCheatCodeSheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
{
if (returnCode == NSOKButton) {
- PcsxrCheatTemp *tmpCheat = [cheats objectAtIndex:[cheatView selectedRow]];
+ PcsxrCheatTemp *tmpCheat = cheats[[cheatView selectedRow]];
if (![tmpCheat.cheatValues isEqualToArray:tempCheatCodes]) {
tmpCheat.cheatValues = tempCheatCodes;
[self setDocumentEdited:YES];
@@ -295,7 +295,7 @@
NSBeep();
return;
}
- NSMutableArray *tmpArray = [[cheats objectAtIndex:[cheatView selectedRow]] cheatValues];
+ NSMutableArray *tmpArray = [cheats[[cheatView selectedRow]] cheatValues];
NSMutableArray *newCheats = [[NSMutableArray alloc] initWithArray:tmpArray copyItems:YES];
self.tempCheatCodes = newCheats;
[NSApp beginSheet:editCheatWindow modalForWindow:[self window] modalDelegate:self didEndSelector:@selector(editCheatCodeSheetDidEnd:returnCode:contextInfo:) contextInfo:NULL];