Always return an RTD

This commit is contained in:
Gymnasiast committed 2021-02-24 14:10:22 +01:00
1 parent 9e4553c5b6
commit 429f6fb845
1 file changed
+3
+3
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];
}