Use constant for max ride categories

This commit is contained in:
Ted John committed 2018-05-15 12:08:44 +01:00
1 parent 6f00e6aafe
commit 58241d33fc
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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>();
}