Quiet a warning.
This commit is contained in:
@@ -44,11 +44,11 @@ void set_up_apple_events(int, char*[]) {
|
||||
(void) app; // Suppress "unused parameter" warning
|
||||
if(file == nil) {
|
||||
std::cerr << "Error: filename was nil" << std::endl;
|
||||
return FALSE;
|
||||
return NO;
|
||||
}
|
||||
|
||||
if(!load_party(file.fileSystemRepresentation, univ))
|
||||
return FALSE;
|
||||
return NO;
|
||||
|
||||
if(!finished_init) {
|
||||
ae_loading = true;
|
||||
@@ -58,7 +58,7 @@ void set_up_apple_events(int, char*[]) {
|
||||
end_startup();
|
||||
if(overall_mode != MODE_STARTUP)
|
||||
post_load();
|
||||
return TRUE;
|
||||
return YES;
|
||||
}
|
||||
|
||||
// TODO: Something about the cChoiceDlog causes this to crash... AFTER returning.
|
||||
|
@@ -2455,6 +2455,8 @@ static bool add_shop_entry(cDialog& me, std::string type, cShop& shop, size_t wh
|
||||
list = STRT_HEALING;
|
||||
prompt = "What kind of healing?";
|
||||
}
|
||||
else
|
||||
return false;
|
||||
int i = choose_text(list, -1, &me, prompt);
|
||||
if(i == -1) return true;
|
||||
if(list == STRT_HEALING) {
|
||||
|
Reference in New Issue
Block a user