Skip to content

Commit cf57624

Browse files
committed
Fix IsNearby check having invalid logic and hiding options because of it
1 parent c7448f2 commit cf57624

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

indra/newview/llviewermenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9668,7 +9668,7 @@ class ListIsNearby final : public view_listener_t
96689668
{
96699669
const auto& data = userdata["data"];
96709670
const auto& id = active_owner_or_id(data);
9671-
gMenuHolder->findControl(userdata["control"].asString())->setValue(!data.asBoolean() && LFIDBearer::getActiveType() == LFIDBearer::OBJECT ? !!gObjectList.findObject(id) : is_nearby(id));
9671+
gMenuHolder->findControl(userdata["control"].asString())->setValue((LFIDBearer::getActiveType() == LFIDBearer::OBJECT && data.asBoolean()) ? !!gObjectList.findObject(id) : is_nearby(id));
96729672
return true;
96739673
}
96749674
};

0 commit comments

Comments
 (0)