STORM-1986 Eliminated early return per code review
parent
db8e4824e7
commit
bb68d6a889
|
|
@ -1473,16 +1473,14 @@ void LLItemBridge::doShowOnMap(LLLandmark* landmark)
|
|||
{
|
||||
LLVector3d landmark_global_pos;
|
||||
// landmark has already been tested for NULL by calling routine
|
||||
if (!landmark->getGlobalPos(landmark_global_pos))
|
||||
if (landmark->getGlobalPos(landmark_global_pos))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
LLFloaterWorldMap* worldmap_instance = LLFloaterWorldMap::getInstance();
|
||||
if (!landmark_global_pos.isExactlyZero() && worldmap_instance)
|
||||
{
|
||||
worldmap_instance->trackLocation(landmark_global_pos);
|
||||
LLFloaterReg::showInstance("world_map", "center");
|
||||
LLFloaterWorldMap* worldmap_instance = LLFloaterWorldMap::getInstance();
|
||||
if (!landmark_global_pos.isExactlyZero() && worldmap_instance)
|
||||
{
|
||||
worldmap_instance->trackLocation(landmark_global_pos);
|
||||
LLFloaterReg::showInstance("world_map", "center");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue