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 * Update Guest.cpp
This commit is contained in:
committed by
GitHub
parent
3aeb87b285
commit
da965cb1ad
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user