mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-19 20:13:27 +02:00
more fixes to loading of creatures
fixed when there are spaces at beginning of the file fixed when file is unable to parse
This commit is contained in:
@@ -117,7 +117,8 @@ class OTS_MonstersList implements Iterator, Countable, ArrayAccess
|
||||
{
|
||||
// loads file
|
||||
$monster = new OTS_Monster();
|
||||
$monster->load($this->monstersPath . $this->monsters[$name]);
|
||||
//echo $this->monstersPath . $this->monsters[$name];
|
||||
$monster->loadXML(trim(file_get_contents($this->monstersPath . $this->monsters[$name])));
|
||||
return $monster;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user