mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-23 10:51:58 -05:00
Delete ParkLoadResult after it's been used
This commit is contained in:
parent
eb76b188ae
commit
4c6412d4fd
1 changed files with 2 additions and 0 deletions
|
@ -1124,6 +1124,7 @@ bool game_load_save(const utf8 *path)
|
|||
}
|
||||
|
||||
if (load_success) {
|
||||
ParkLoadResult_Delete(result);
|
||||
if (network_get_mode() == NETWORK_MODE_CLIENT) {
|
||||
network_close();
|
||||
}
|
||||
|
@ -1138,6 +1139,7 @@ bool game_load_save(const utf8 *path)
|
|||
return true;
|
||||
} else {
|
||||
handle_park_load_failure(result, path);
|
||||
ParkLoadResult_Delete(result);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue