mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Delete ParkLoadResult after it's been used
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user