diff --git a/includes/loot.class.php b/includes/loot.class.php index 80900b5a..2c4b9614 100644 --- a/includes/loot.class.php +++ b/includes/loot.class.php @@ -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']]))