diff options
Diffstat (limited to 'pokemod/Move.cpp')
| -rw-r--r-- | pokemod/Move.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pokemod/Move.cpp b/pokemod/Move.cpp index 84c29e7a..5393e427 100644 --- a/pokemod/Move.cpp +++ b/pokemod/Move.cpp @@ -55,7 +55,8 @@ Pokemod::Move::Move(const Move& move, const Pokemod* parent, const int id) : Pokemod::Move::Move(const QDomElement& xml, const Pokemod* parent, const int id) : Object("Move", parent, id) { - load(xml, id); + LOAD_ID(); + load(xml); } Pokemod::Move::~Move() @@ -73,9 +74,9 @@ void Pokemod::Move::validate() TEST_END(); } -void Pokemod::Move::load(const QDomElement& xml, int id) +void Pokemod::Move::load(const QDomElement& xml) { - LOAD_ID(); + LOAD_BEGIN(); LOAD(QString, name); LOAD(Fraction, accuracy); LOAD(int, power); |
