Guard prioritizer agains null values as those produced by a bullet dying
before it can be updatedprebuild-update
parent
854a8b9172
commit
68551675df
|
@ -53,6 +53,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
double priority = 0;
|
double priority = 0;
|
||||||
|
|
||||||
|
if (entity == null)
|
||||||
|
return 100000;
|
||||||
|
|
||||||
switch (m_scene.UpdatePrioritizationScheme)
|
switch (m_scene.UpdatePrioritizationScheme)
|
||||||
{
|
{
|
||||||
case UpdatePrioritizationSchemes.Time:
|
case UpdatePrioritizationSchemes.Time:
|
||||||
|
|
Loading…
Reference in New Issue