1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Fix #24998: Some custom small scenery objects do not load

This commit is contained in:
Michael Steenbeek
2025-09-23 14:06:20 +02:00
committed by GitHub
parent 9e02ba453e
commit 3e11a8efdf
2 changed files with 3 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ namespace OpenRCT2
_legacyType.animation_mask = stream->ReadValue<uint16_t>();
_legacyType.num_frames = stream->ReadValue<uint16_t>();
_legacyType.scenery_tab_id = kObjectEntryIndexNull;
// Skip past the reserved space for the scenery_tab_id and an unused byte - the string table starts at offset 0x1C.
stream->Seek(2, STREAM_SEEK_CURRENT);
GetStringTable().Read(context, stream, ObjectStringID::NAME);