diff --git a/system/libs/pot/OTS_Monster.php b/system/libs/pot/OTS_Monster.php index a7e079ac..244a0229 100644 --- a/system/libs/pot/OTS_Monster.php +++ b/system/libs/pot/OTS_Monster.php @@ -276,7 +276,7 @@ class OTS_Monster extends DOMDocument /** * Returns look of the monster. - * + * * @return array Look with all the attributes of the look. * @throws DOMException On DOM operation error. */ @@ -286,6 +286,10 @@ class OTS_Monster extends DOMDocument $element = $this->documentElement->getElementsByTagName('look')->item(0); + if (!$element) { + return $look; + } + $look['type'] = $element->getAttribute('type'); $look['typeex'] = $element->getAttribute('typeex'); $look['head'] = $element->getAttribute('head');