aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-05-03 21:34:38 +0100
committerJustin Clark-Casey (justincc)2010-05-03 21:34:38 +0100
commita69cb5e3901eb9aa7ebfa65a5787e023136a2b19 (patch)
treebd0cdeea015a00f972ec0767e0d7f5a0051d75d8 /OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs
parentadd operation to "nant distbin" to copy StandaloneCommon.ini.example -> Stand... (diff)
downloadopensim-SC_OLD-a69cb5e3901eb9aa7ebfa65a5787e023136a2b19.zip
opensim-SC_OLD-a69cb5e3901eb9aa7ebfa65a5787e023136a2b19.tar.gz
opensim-SC_OLD-a69cb5e3901eb9aa7ebfa65a5787e023136a2b19.tar.bz2
opensim-SC_OLD-a69cb5e3901eb9aa7ebfa65a5787e023136a2b19.tar.xz
Address symptom of Mantis 4588 (though not the cause) by moving the avatar dereference inside the exception catch
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs b/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs
index 1a6cd6c..4bcfaac 100644
--- a/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Combat/CombatModule.cs
@@ -146,10 +146,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Combat.CombatModule
146 } 146 }
147 147
148 private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID) 148 private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID)
149 { 149 {
150 ILandObject obj = avatar.Scene.LandChannel.GetLandObject(avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y);
151 try 150 try
152 { 151 {
152 ILandObject obj = avatar.Scene.LandChannel.GetLandObject(avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y);
153
153 if ((obj.LandData.Flags & (uint)ParcelFlags.AllowDamage) != 0) 154 if ((obj.LandData.Flags & (uint)ParcelFlags.AllowDamage) != 0)
154 { 155 {
155 avatar.Invulnerable = false; 156 avatar.Invulnerable = false;