forked from rosebudai/OpenRCT2-Web
Use constant for max ride categories
This commit is contained in:
1 parent
6f00e6aafe
commit
58241d33fc
2 files changed
+2
-2
No files matched your search
@@ -171,7 +171,7 @@ protected:
|
||||
switch (object_entry_get_type(&item.ObjectEntry)) {
|
||||
case OBJECT_TYPE_RIDE:
|
||||
item.RideInfo.RideFlags = stream->ReadValue<uint8>();
|
||||
for (sint32 i = 0; i < 2; i++)
|
||||
for (sint32 i = 0; i < MAX_CATEGORIES_PER_RIDE; i++)
|
||||
{
|
||||
item.RideInfo.RideCategory[i] = stream->ReadValue<uint8>();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user