fix a null check
parent
673bd37219
commit
7651d60d72
|
@ -455,10 +455,11 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
if(sog == null || client == null)
|
||||
return false;
|
||||
|
||||
ScenePresence sp = client.SceneAgent as ScenePresence;
|
||||
if(sp == null)
|
||||
if(client.SceneAgent == null)
|
||||
return false;
|
||||
|
||||
ScenePresence sp = client.SceneAgent as ScenePresence;
|
||||
|
||||
MoveObjectHandler handler = OnMoveObject;
|
||||
if (handler != null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue