1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Always return an RTD

This commit is contained in:
Gymnasiast
2021-02-24 13:28:39 +01:00
parent 9e4553c5b6
commit 429f6fb845

View File

@@ -7332,6 +7332,9 @@ uint64_t Ride::GetAvailableModes() const
const RideTypeDescriptor& Ride::GetRideTypeDescriptor() const
{
if (type >= std::size(RideTypeDescriptors))
return DummyRTD;
return RideTypeDescriptors[type];
}