From 300e44b68e075d7fd78287e10262b0d502f4898d Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 28 Jun 2008 19:37:45 +0000 Subject: [FIX] Macros fixed and ID can't be set outside of constructors [FIX] Map flyWarp no longer raises and error by default git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@216 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Sprite.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pokemod/Sprite.cpp') diff --git a/pokemod/Sprite.cpp b/pokemod/Sprite.cpp index e497f270..4b2802bb 100644 --- a/pokemod/Sprite.cpp +++ b/pokemod/Sprite.cpp @@ -44,7 +44,8 @@ Pokemod::Sprite::Sprite(const Sprite& sprite, const Pokemod* parent, const int i Pokemod::Sprite::Sprite(const QDomElement& xml, const Pokemod* parent, const int id) : Object("Sprite", parent, id) { - load(xml, id); + LOAD_ID(); + load(xml); } Pokemod::Sprite::~Sprite() @@ -59,9 +60,9 @@ void Pokemod::Sprite::validate() TEST_END(); } -void Pokemod::Sprite::load(const QDomElement& xml, int id) +void Pokemod::Sprite::load(const QDomElement& xml) { - LOAD_ID(); + LOAD_BEGIN(); LOAD(QString, name); LOAD(QPixmap, sprite); } -- cgit