1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Apply some refactoring

This commit is contained in:
Christian F. Coors
2017-10-03 00:00:32 +02:00
committed by Michael Steenbeek
parent 386a399a51
commit 06afeeda9a
60 changed files with 221 additions and 292 deletions

View File

@@ -118,8 +118,7 @@ void SceneryGroupObject::ReadItems(IStream * stream)
{
auto items = std::vector<rct_object_entry>();
uint8 endMarker;
while ((endMarker = stream->ReadValue<uint8>()) != 0xFF)
while (stream->ReadValue<uint8>() != 0xFF)
{
stream->Seek(-1, STREAM_SEEK_CURRENT);
rct_object_entry entry = stream->ReadValue<rct_object_entry>();