mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
fix objects always been packed into saves
This commit is contained in:
@@ -89,7 +89,7 @@ void S6Exporter::SaveScenario(SDL_RWops *rw)
|
||||
void S6Exporter::Save(SDL_RWops * rw, bool isScenario)
|
||||
{
|
||||
_s6.header.type = isScenario ? S6_TYPE_SCENARIO : S6_TYPE_SAVEDGAME;
|
||||
_s6.header.num_packed_objects = scenario_get_num_packed_objects_to_write();
|
||||
_s6.header.num_packed_objects = ExportObjects ? scenario_get_num_packed_objects_to_write() : 0;
|
||||
_s6.header.version = S6_RCT2_VERSION;
|
||||
_s6.header.magic_number = S6_MAGIC_NUMBER;
|
||||
|
||||
|
||||
@@ -372,7 +372,8 @@ void S6Importer::Import()
|
||||
// pad_13CE778
|
||||
|
||||
// Fix and set dynamic variables
|
||||
if (!object_load_entries(_s6.objects)) {
|
||||
if (!object_load_entries(_s6.objects))
|
||||
{
|
||||
throw ObjectLoadException();
|
||||
}
|
||||
reset_loaded_objects();
|
||||
|
||||
Reference in New Issue
Block a user