diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-26 07:08:59 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-26 07:08:59 +0000 |
| commit | 9200ed0568719fc3ffbf9c1f2fd07a667097b875 (patch) | |
| tree | 0a7df5baf46c1b5f51ec0215f68ecd91cfa49863 /pokemod/Pokemod.cpp | |
| parent | 2be7d8f347d2f1e21832b29063609adc82d7bbfa (diff) | |
| download | sigen-9200ed0568719fc3ffbf9c1f2fd07a667097b875.tar.gz sigen-9200ed0568719fc3ffbf9c1f2fd07a667097b875.tar.xz sigen-9200ed0568719fc3ffbf9c1f2fd07a667097b875.zip | |
[FIX] Recent files now works
[FIX] Various UI fixes
[FIX] Scripts are now escaped correctly in the XML
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@176 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Pokemod.cpp')
| -rw-r--r-- | pokemod/Pokemod.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pokemod/Pokemod.cpp b/pokemod/Pokemod.cpp index a0e86ced..895366e1 100644 --- a/pokemod/Pokemod.cpp +++ b/pokemod/Pokemod.cpp @@ -389,7 +389,7 @@ void Pokemod::load(const QDomElement& xml, const int) LOAD(QPixmap, flySkin); LOAD(QPixmap, fishSkin); LOAD(QPixmap, surfFishSkin); - LOAD(Rules, rules); + LOAD_Rules(); LOAD_SUB(newAbility, Ability); LOAD_SUB(newAuthor, Author); LOAD_SUB(newBadge, Badge); @@ -2161,6 +2161,7 @@ Pokemod& Pokemod::operator=(const Pokemod& rhs) void Pokemod::clear() { + delete m_rules; while (abilityCount()) deleteAbility(0); while (authorCount()) |
