Guard prioritizer agains null values as those produced by a bullet dying

before it can be updated
avinationmerge
Melanie Thielker 2010-06-22 02:33:20 +02:00
parent 3ea4e5ccbe
commit 3428196631
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@ namespace OpenSim.Region.Framework.Scenes
{
double priority = 0;
if (entity == null)
return 100000;
switch (m_scene.UpdatePrioritizationScheme)
{
case UpdatePrioritizationSchemes.Time: