Address symptom of Mantis 4588 (though not the cause) by moving the avatar dereference inside the exception catch
parent
25bb80da77
commit
dd1b99cd0d
|
@ -147,9 +147,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Combat.CombatModule
|
||||||
|
|
||||||
private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID)
|
private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID)
|
||||||
{
|
{
|
||||||
ILandObject obj = avatar.Scene.LandChannel.GetLandObject(avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y);
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
ILandObject obj = avatar.Scene.LandChannel.GetLandObject(avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y);
|
||||||
|
|
||||||
if ((obj.LandData.Flags & (uint)ParcelFlags.AllowDamage) != 0)
|
if ((obj.LandData.Flags & (uint)ParcelFlags.AllowDamage) != 0)
|
||||||
{
|
{
|
||||||
avatar.Invulnerable = false;
|
avatar.Invulnerable = false;
|
||||||
|
|
Loading…
Reference in New Issue