From 6dd3d36c4552565756dcedab2ddd44e90a553252 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 19 Jun 2008 02:06:10 +0000 Subject: [FIX] Validation works in Pokémodr [FIX] Macros moved to their own file [FIX] Macros for subclasses added [FIX] Key shortcuts added to context menu items [FIX] Rules had a redundant field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@212 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/MapTrainerTeamMember.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pokemod/MapTrainerTeamMember.cpp') diff --git a/pokemod/MapTrainerTeamMember.cpp b/pokemod/MapTrainerTeamMember.cpp index 1085f1b1..921de3c8 100644 --- a/pokemod/MapTrainerTeamMember.cpp +++ b/pokemod/MapTrainerTeamMember.cpp @@ -20,6 +20,7 @@ // Pokemod includes #include "Item.h" +#include "Macros.h" #include "MapTrainer.h" #include "Pokemod.h" #include "Rules.h" @@ -56,6 +57,7 @@ Pokemod::MapTrainerTeamMember::MapTrainerTeamMember(const QDomElement& xml, cons void Pokemod::MapTrainerTeamMember::validate() { + TEST_BEGIN(); TEST(setSpecies, species); TEST(setLevel, level); if (static_cast(pokemod())->rules()->maxAbilities() < m_ability.size()) @@ -70,6 +72,7 @@ void Pokemod::MapTrainerTeamMember::validate() if (static_cast(pokemod())->rules()->maxNatures() < m_nature.size()) emit(error("Too many natures")); TEST_LIST(setNature, nature); + TEST_END(); } void Pokemod::MapTrainerTeamMember::load(const QDomElement& xml, int id) -- cgit