Whoops, fixup locally experienced crash with lookat beacons.
This commit is contained in:
@@ -550,8 +550,8 @@ void LLHUDEffectLookAt::render()
|
||||
static const LLCachedControl<S32> lookAtNames("LookAtNameSystem");
|
||||
if (lookAtNames < 0) return;
|
||||
std::string text;
|
||||
LLAvatarNameCache::getPNSName(static_cast<LLVOAvatar*>(mSourceObject.get())->getID(), text, lookAtNames);
|
||||
if (0 == text.compare(text.length() - 9, 9, " Resident"))
|
||||
if (!LLAvatarNameCache::getPNSName(static_cast<LLVOAvatar*>(mSourceObject.get())->getID(), text, lookAtNames)) return;
|
||||
if (text.length() > 9 && 0 == text.compare(text.length() - 9, 9, " Resident"))
|
||||
text.erase(text.length() - 9);
|
||||
LLVector3 offset = gAgentCamera.getCameraPositionAgent() - target;
|
||||
offset.normalize();
|
||||
|
||||
Reference in New Issue
Block a user