diff --git a/ogsr_engine/xrGame/map_spot.cpp b/ogsr_engine/xrGame/map_spot.cpp index 46171571a5..baa2a67027 100644 --- a/ogsr_engine/xrGame/map_spot.cpp +++ b/ogsr_engine/xrGame/map_spot.cpp @@ -32,10 +32,10 @@ void CMapSpot::Load(CUIXml* xml, LPCSTR path) m_originSize = GetWndSize(); } -LPCSTR CMapSpot::GetHint() +LPCSTR CMapSpot::GetHint() { - return MapLocation()->GetHint(); -}; + return MapLocation() ? MapLocation()->GetHint() : nullptr; +} void CMapSpot::Update() {