Commits

Anonymous committed 9717af1

Possible crash fix in LLAgent::doTeleportViaLocation

  • Participants
  • Parent commits b53232b

Comments (0)

Files changed (1)

File indra/newview/llagent.cpp

 void LLAgent::doTeleportViaLocation(const LLVector3d& pos_global)
 {
 	LLViewerRegion* regionp = getRegion();
+
+	if (!regionp)
+	{
+		return;
+	}
+
 	U64 handle = to_region_handle(pos_global);
 	LLSimInfo* info = LLWorldMap::getInstance()->simInfoFromHandle(handle);
 	if(regionp && info)