mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix potential null dereference
This commit is contained in:
parent
e4758df2e9
commit
c15f17c49a
|
@ -474,7 +474,7 @@ InteractionInfo ViewportInteractionGetItemRight(const ScreenCoordsXY& screenCoor
|
|||
{
|
||||
ft.Add<rct_string_id>(STR_BROKEN);
|
||||
}
|
||||
ft.Add<rct_string_id>(pathAddEntry->name);
|
||||
ft.Add<rct_string_id>(pathAddEntry != nullptr ? pathAddEntry->name : STR_NONE);
|
||||
SetMapTooltip(ft);
|
||||
return info;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue