diff options
author | Melanie Thielker | 2010-06-22 02:33:20 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-06-22 02:33:20 +0200 |
commit | 3428196631bb13f04d04208af9fd28a432805ccf (patch) | |
tree | cff80fa485cc5ae2b3a82c046847cd57473d86c2 /OpenSim/Region/Framework/Scenes/Prioritizer.cs | |
parent | Correctly update the LastSeen field (diff) | |
download | opensim-SC_OLD-3428196631bb13f04d04208af9fd28a432805ccf.zip opensim-SC_OLD-3428196631bb13f04d04208af9fd28a432805ccf.tar.gz opensim-SC_OLD-3428196631bb13f04d04208af9fd28a432805ccf.tar.bz2 opensim-SC_OLD-3428196631bb13f04d04208af9fd28a432805ccf.tar.xz |
Guard prioritizer agains null values as those produced by a bullet dying
before it can be updated
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Prioritizer.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs index b95b5f2..8cd0160 100644 --- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs +++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs | |||
@@ -52,6 +52,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
52 | public double GetUpdatePriority(IClientAPI client, ISceneEntity entity) | 52 | public double GetUpdatePriority(IClientAPI client, ISceneEntity entity) |
53 | { | 53 | { |
54 | double priority = 0; | 54 | double priority = 0; |
55 | |||
56 | if (entity == null) | ||
57 | return 100000; | ||
55 | 58 | ||
56 | switch (m_scene.UpdatePrioritizationScheme) | 59 | switch (m_scene.UpdatePrioritizationScheme) |
57 | { | 60 | { |