diff --git a/system/libs/pot/OTS_MonstersList.php b/system/libs/pot/OTS_MonstersList.php index 5e9a424c..7ad19fd6 100644 --- a/system/libs/pot/OTS_MonstersList.php +++ b/system/libs/pot/OTS_MonstersList.php @@ -118,7 +118,9 @@ class OTS_MonstersList implements Iterator, Countable, ArrayAccess // loads file $monster = new OTS_Monster(); //echo $this->monstersPath . $this->monsters[$name]; - $monster->loadXML(trim(file_get_contents($this->monstersPath . $this->monsters[$name]))); + if(file_exists($this->monstersPath . $this->monsters[$name])) { + $monster->loadXML(trim(file_get_contents($this->monstersPath . $this->monsters[$name]))); + } return $monster; }