1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Protect against unknown ride types

This commit is contained in:
Ted John
2018-03-30 16:58:12 +01:00
parent 375deb0c9f
commit 63e9275b60
3 changed files with 6 additions and 5 deletions

View File

@@ -488,7 +488,7 @@ void RideObject::ReadJson(IReadObjectContext * context, const json_t * root)
rideType = ParseRideType(rideTypes[i]);
if (rideType == RIDE_TYPE_NULL)
{
context->LogWarning(OBJECT_ERROR_INVALID_PROPERTY, "Unknown ride type");
context->LogError(OBJECT_ERROR_INVALID_PROPERTY, "Unknown ride type");
}
}