mirror of https://github.com/OpenRCT2/OpenRCT2.git
Check for NULL element in get_ride_queue_end
This commit is contained in:
parent
7d62c70c59
commit
32438ef6d0
|
@ -9921,6 +9921,10 @@ static void get_ride_queue_end(sint16 *x, sint16 *y, sint16 *z){
|
|||
rct_xy16 result = { 0, 0 };
|
||||
rct_map_element *mapElement = map_get_first_element_at(*x / 32, *y / 32);
|
||||
|
||||
if (mapElement == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool found = false;
|
||||
do{
|
||||
if (map_element_get_type(mapElement) != MAP_ELEMENT_TYPE_ENTRANCE)
|
||||
|
|
Loading…
Reference in New Issue