osNpcLookAt() should only work on NPC's, not on regular users

This commit is contained in:
Oren Hurvitz
2021-03-14 15:12:06 +02:00
parent 521754ba84
commit 3d208dd690

View File

@@ -6080,7 +6080,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return -2;
ScenePresence npcSP = World.GetScenePresence(npc);
if(npc == null)
if((npcSP == null) || !npcSP.IsNPC)
return -3;
if (!UUID.TryParse(objkey, out UUID obj))