1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Fix #4820. Fix banner signs build cost.

Issue was caused by an incorrect read (only 1 byte instead of 2) of the legacy banner data during object loading. Note this would have caused the scenery_tab_id and string table to possibly have corrupted data.
This commit is contained in:
duncanspumpkin
2016-11-22 19:36:24 +00:00
parent 2ec1fd0378
commit 90dbcdb3c1

View File

@@ -29,7 +29,7 @@ void BannerObject::ReadLegacy(IReadObjectContext * context, IStream * stream)
stream->Seek(6, STREAM_SEEK_CURRENT);
_legacyType.banner.scrolling_mode = stream->ReadValue<uint8>();
_legacyType.banner.flags = stream->ReadValue<uint8>();
_legacyType.banner.price = stream->ReadValue<uint8>();
_legacyType.banner.price = stream->ReadValue<sint16>();
_legacyType.banner.scenery_tab_id = stream->ReadValue<uint8>();
GetStringTable()->Read(context, stream, OBJ_STRING_ID_NAME);