mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 03:23:15 +01:00
Fix #12478: Crash in track_block_get_next()
This commit is contained in:
committed by
GitHub
parent
9db2aac3bf
commit
ba10b84789
@@ -555,6 +555,9 @@ bool track_block_get_next_from_zero(
|
||||
*/
|
||||
bool track_block_get_next(CoordsXYE* input, CoordsXYE* output, int32_t* z, int32_t* direction)
|
||||
{
|
||||
if (input == nullptr || input->element == nullptr)
|
||||
return false;
|
||||
|
||||
auto inputElement = input->element->AsTrack();
|
||||
if (inputElement == nullptr)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user