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:
committed by
GitHub
parent
05f2995d71
commit
ebe38a91ce
@@ -7183,6 +7183,8 @@ namespace OpenRCT2
|
||||
|
||||
const TrackElementDescriptor& GetTrackElementDescriptor(const uint32_t type)
|
||||
{
|
||||
if (type >= _trackElementDescriptors.size())
|
||||
return _trackElementDescriptors[0];
|
||||
return _trackElementDescriptors[type];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user