mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Prevent AO from crashing the sim if the user logs out before the script
stops
This commit is contained in:
@@ -3492,6 +3492,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
m_host.AddScriptLPS(1);
|
||||
UUID avatar = (UUID)id;
|
||||
ScenePresence presence = World.GetScenePresence(avatar);
|
||||
if (presence == null)
|
||||
return "";
|
||||
|
||||
if (m_host.RegionHandle == presence.RegionHandle)
|
||||
{
|
||||
Dictionary<UUID, string> animationstateNames = AnimationSet.Animations.AnimStateNames;
|
||||
|
||||
Reference in New Issue
Block a user