1
0
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:
Michael Steenbeek
2020-07-26 17:16:27 +02:00
committed by GitHub
parent 9db2aac3bf
commit ba10b84789

View File

@@ -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;