diff options
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r-- | Source/SPBundleEditorController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m index 01aca387..f38ffb28 100644 --- a/Source/SPBundleEditorController.m +++ b/Source/SPBundleEditorController.m @@ -237,7 +237,7 @@ static NSString *SPSaveBundleAction = @"SPSaveBundle"; {inputNoneArray, inputNonePopUpMenu, NULL} }; - for(unsigned int i=0;i<(sizeof(menus)/sizeof(struct _menuItemMap));i++) { + for(unsigned int i=0;i<COUNT_OF(menus);i++) { struct _menuItemMap *menu = &menus[i]; for(NSString* title in menu->items) { NSMenuItem *anItem = [[NSMenuItem alloc] initWithTitle:[menuItemTitles objectForKey:title] action:menu->action keyEquivalent:@""]; |