summaryrefslogtreecommitdiffstats
path: root/pokemod/Tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Tile.cpp')
-rw-r--r--pokemod/Tile.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/pokemod/Tile.cpp b/pokemod/Tile.cpp
index d616dd21..685bf57f 100644
--- a/pokemod/Tile.cpp
+++ b/pokemod/Tile.cpp
@@ -47,7 +47,8 @@ Pokemod::Tile::Tile(const Tile& tile, const Pokemod* parent, const int id) :
Pokemod::Tile::Tile(const QDomElement& xml, const Pokemod* parent, const int id) :
Object("Tile", parent, id)
{
- load(xml, id);
+ LOAD_ID();
+ load(xml);
}
void Pokemod::Tile::validate()
@@ -59,9 +60,9 @@ void Pokemod::Tile::validate()
TEST_END();
}
-void Pokemod::Tile::load(const QDomElement& xml, int id)
+void Pokemod::Tile::load(const QDomElement& xml)
{
- LOAD_ID();
+ LOAD_BEGIN();
LOAD(QString, name);
LOAD(QPixmap, sprite);
LOAD_ARRAY(bool, from, D_End);