Loot/Errors
* gracefully handle loot referencing nonexistent items
This commit is contained in:
parent
97d59dbb98
commit
67d4f12cfe
1 changed files with 6 additions and 0 deletions
|
|
@ -308,6 +308,12 @@ class Loot
|
|||
|
||||
if (empty($loot['reference'])) // regular drop
|
||||
{
|
||||
if (!isset($foo[$loot['content']]))
|
||||
{
|
||||
trigger_error('Item #'.$loot['content'].' referenced by loot does not exist!', E_USER_WARNING);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!User::isInGroup(U_GROUP_EMPLOYEE))
|
||||
{
|
||||
if (!isset($this->results[$loot['content']]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue