mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Guard prioritizer agains null values as those produced by a bullet dying
before it can be updated
This commit is contained in:
committed by
Melanie
parent
854a8b9172
commit
68551675df
@@ -52,6 +52,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public double GetUpdatePriority(IClientAPI client, ISceneEntity entity)
|
||||
{
|
||||
double priority = 0;
|
||||
|
||||
if (entity == null)
|
||||
return 100000;
|
||||
|
||||
switch (m_scene.UpdatePrioritizationScheme)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user