Prevent a nonexistent inventory item from throwing an exception

avinationmerge
Melanie 2011-02-07 22:25:43 +01:00
parent 595891409c
commit e8ba3d3a10
1 changed files with 2 additions and 1 deletions

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