mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
2ec1fd0378
commit
90dbcdb3c1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue