Fix potential null dereference

This commit is contained in:
ZehMatt 2021-07-22 22:09:43 +03:00
parent e4758df2e9
commit c15f17c49a
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 1 additions and 1 deletions

View File

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