summaryrefslogtreecommitdiffstats
path: root/pokemod/Weather.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Weather.cpp')
-rw-r--r--pokemod/Weather.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/pokemod/Weather.cpp b/pokemod/Weather.cpp
index fa080445..1f336bb1 100644
--- a/pokemod/Weather.cpp
+++ b/pokemod/Weather.cpp
@@ -45,7 +45,8 @@ Pokemod::Weather::Weather(const Weather& weather, const Pokemod* parent, const i
Pokemod::Weather::Weather(const QDomElement& xml, const Pokemod* parent, const int id) :
Object("Weather", parent, id)
{
- load(xml, id);
+ LOAD_ID();
+ load(xml);
}
Pokemod::Weather::~Weather()
@@ -60,9 +61,9 @@ void Pokemod::Weather::validate()
TEST_END();
}
-void Pokemod::Weather::load(const QDomElement& xml, int id)
+void Pokemod::Weather::load(const QDomElement& xml)
{
- LOAD_ID();
+ LOAD_BEGIN();
LOAD(QString, name);
LOAD(Script, script);
}