diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Permissions.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs index b2801ea..e066c0a 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Permissions.cs | |||
@@ -455,10 +455,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
455 | if(sog == null || client == null) | 455 | if(sog == null || client == null) |
456 | return false; | 456 | return false; |
457 | 457 | ||
458 | ScenePresence sp = client.SceneAgent as ScenePresence; | 458 | if(client.SceneAgent == null) |
459 | if(sp == null) | ||
460 | return false; | 459 | return false; |
461 | 460 | ||
461 | ScenePresence sp = client.SceneAgent as ScenePresence; | ||
462 | |||
462 | MoveObjectHandler handler = OnMoveObject; | 463 | MoveObjectHandler handler = OnMoveObject; |
463 | if (handler != null) | 464 | if (handler != null) |
464 | { | 465 | { |