summaryrefslogtreecommitdiffstats
path: root/pokemod/MapWildList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/MapWildList.cpp')
-rw-r--r--pokemod/MapWildList.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/pokemod/MapWildList.cpp b/pokemod/MapWildList.cpp
index 30613ede..c4b519e4 100644
--- a/pokemod/MapWildList.cpp
+++ b/pokemod/MapWildList.cpp
@@ -47,7 +47,8 @@ Pokemod::MapWildList::MapWildList(const MapWildList& wildList, const Map* parent
Pokemod::MapWildList::MapWildList(const QDomElement& xml, const Map* parent, const int id) :
Object("MapWildList", parent, id)
{
- load(xml, id);
+ LOAD_ID();
+ load(xml);
}
Pokemod::MapWildList::~MapWildList()
@@ -69,9 +70,9 @@ void Pokemod::MapWildList::validate()
TEST_END();
}
-void Pokemod::MapWildList::load(const QDomElement& xml, int id)
+void Pokemod::MapWildList::load(const QDomElement& xml)
{
- LOAD_ID();
+ LOAD_BEGIN();
LOAD(QString, name);
LOAD_SUB(newEncounter, MapWildListEncounter);
}