Skip to content

Commit

Permalink
Fixed GetHint not throw expcetion when MapLocation null
Browse files Browse the repository at this point in the history
  • Loading branch information
joye-ramone committed Dec 3, 2018
1 parent d290ca1 commit 067eb86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ogsr_engine/xrGame/map_spot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 067eb86

Please sign in to comment.