mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
In osSetSpeed(), if no avatar for a uuid is found then don't attempt to set speed.
This commit is contained in:
@@ -2740,7 +2740,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
CheckThreatLevel(ThreatLevel.Moderate, "osSetSpeed");
|
||||
m_host.AddScriptLPS(1);
|
||||
ScenePresence avatar = World.GetScenePresence(new UUID(UUID));
|
||||
avatar.SpeedModifier = (float)SpeedModifier;
|
||||
|
||||
if (avatar != null)
|
||||
avatar.SpeedModifier = (float)SpeedModifier;
|
||||
}
|
||||
|
||||
public void osKickAvatar(string FirstName,string SurName,string alert)
|
||||
|
||||
Reference in New Issue
Block a user