1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Return dummy TED when index is out of bounds (#17810)

This commit is contained in:
Michael Steenbeek
2022-08-21 18:09:18 +02:00
committed by GitHub
parent 05f2995d71
commit ebe38a91ce

View File

@@ -7183,6 +7183,8 @@ namespace OpenRCT2
const TrackElementDescriptor& GetTrackElementDescriptor(const uint32_t type)
{
if (type >= _trackElementDescriptors.size())
return _trackElementDescriptors[0];
return _trackElementDescriptors[type];
}