Prevent a nonexistent inventory item from throwing an exception

This commit is contained in:
Melanie
2011-02-07 22:25:43 +01:00
parent 595891409c
commit e8ba3d3a10

View File

@@ -4195,7 +4195,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (!found)
{
llSay(0, String.Format("Could not find object '{0}'", inventory));
throw new Exception(String.Format("The inventory object '{0}' could not be found", inventory));
return;
// throw new Exception(String.Format("The inventory object '{0}' could not be found", inventory));
}
// check if destination is an object