diff options
Diffstat (limited to 'pokemod/Item.cpp')
| -rw-r--r-- | pokemod/Item.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pokemod/Item.cpp b/pokemod/Item.cpp index faaa1bd7..f0dd9392 100644 --- a/pokemod/Item.cpp +++ b/pokemod/Item.cpp @@ -52,7 +52,8 @@ Pokemod::Item::Item(const Item& item, const Pokemod* parent, const int id) : Pokemod::Item::Item(const QDomElement& xml, const Pokemod* parent, const int id) : Object("Item", parent, id) { - load(xml, id); + LOAD_ID(); + load(xml); } Pokemod::Item::~Item() @@ -69,9 +70,9 @@ void Pokemod::Item::validate() TEST_END(); } -void Pokemod::Item::load(const QDomElement& xml, int id) +void Pokemod::Item::load(const QDomElement& xml) { - LOAD_ID(); + LOAD_BEGIN(); LOAD(QString, name); LOAD(bool, sellable); LOAD(int, type); |
