We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 716e09c + 179f46c commit 8bb35acCopy full SHA for 8bb35ac
indra/newview/llagent.cpp
@@ -4321,9 +4321,14 @@ void LLAgent::teleportViaLandmark(const LLUUID& landmark_asset_id)
4321
4322
void LLAgent::doTeleportViaLandmark(const LLUUID& landmark_asset_id)
4323
{
4324
- bool is_local(false);
4325
- LLViewerRegion* regionp = getRegion();
+ LLViewerRegion* regionp = getRegion();
+ if (!regionp)
4326
+ {
4327
+ LL_WARNS("Teleport") << "called when agent region is null" << LL_ENDL;
4328
+ return;
4329
+ }
4330
4331
+ bool is_local(false);
4332
if (LLLandmark* landmark = gLandmarkList.getAsset(landmark_asset_id, NULL))
4333
4334
LLVector3d pos_global;
0 commit comments