Guard prioritizer agains null values as those produced by a bullet dying
before it can be updatedavinationmerge
parent
3ea4e5ccbe
commit
3428196631
|
@ -52,6 +52,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public double GetUpdatePriority(IClientAPI client, ISceneEntity entity)
|
public double GetUpdatePriority(IClientAPI client, ISceneEntity entity)
|
||||||
{
|
{
|
||||||
double priority = 0;
|
double priority = 0;
|
||||||
|
|
||||||
|
if (entity == null)
|
||||||
|
return 100000;
|
||||||
|
|
||||||
switch (m_scene.UpdatePrioritizationScheme)
|
switch (m_scene.UpdatePrioritizationScheme)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue