Fix possible null pointer issue
parent
5553aac2e5
commit
d9eb6ff21c
|
|
@ -4032,13 +4032,13 @@ void process_crossed_region(LLMessageSystem* msg, void**)
|
||||||
if (isAgentAvatarValid())
|
if (isAgentAvatarValid())
|
||||||
{
|
{
|
||||||
gAgentAvatarp->resetRegionCrossingTimer();
|
gAgentAvatarp->resetRegionCrossingTimer();
|
||||||
|
// <FS:Ansariel> FIRE-12004: Attachments getting lost on TP; this is apparently the place to
|
||||||
|
// hook in for region crossings - we get an info from the simulator that we
|
||||||
|
// crossed a region and then the viewer starts the handover process. We only
|
||||||
|
// receive this message if we can actually cross the region and aren't blocked
|
||||||
|
// for some reason (e.g. banned, group access...)
|
||||||
|
gAgentAvatarp->setIsCrossingRegion(true);
|
||||||
}
|
}
|
||||||
// <FS:Ansariel> FIRE-12004: Attachments getting lost on TP; this is apparently the place to
|
|
||||||
// hook in for region crossings - we get an info from the simulator that we
|
|
||||||
// crossed a region and then the viewer starts the handover process. We only
|
|
||||||
// receive this message if we can actually cross the region and aren't blocked
|
|
||||||
// for some reason (e.g. banned, group access...)
|
|
||||||
gAgentAvatarp->setIsCrossingRegion(true);
|
|
||||||
|
|
||||||
U32 sim_ip;
|
U32 sim_ip;
|
||||||
msg->getIPAddrFast(_PREHASH_RegionData, _PREHASH_SimIP, sim_ip);
|
msg->getIPAddrFast(_PREHASH_RegionData, _PREHASH_SimIP, sim_ip);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue