1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix #8224: invalid access in peep_find_ride_to_look_at (#8225)

* Fix #8224: invalid access in peep_find_ride_to_look_at

* Update Guest.cpp
This commit is contained in:
Michał Janiszewski
2018-11-05 06:25:46 +01:00
committed by GitHub
parent 3aeb87b285
commit da965cb1ad

View File

@@ -6434,6 +6434,12 @@ static bool peep_find_ride_to_look_at(rct_peep* peep, uint8_t edge, uint8_t* rid
// TODO: extract loop A
tileElement = surfaceElement;
if (tileElement == nullptr)
{
return false;
}
do
{
// Ghosts are purely this-client-side and should not cause any interaction,