summaryrefslogtreecommitdiffstats
path: root/pokemod/MapTrainerTeamMember.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/MapTrainerTeamMember.cpp')
-rw-r--r--pokemod/MapTrainerTeamMember.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/pokemod/MapTrainerTeamMember.cpp b/pokemod/MapTrainerTeamMember.cpp
index 2948faa7..1338f7b8 100644
--- a/pokemod/MapTrainerTeamMember.cpp
+++ b/pokemod/MapTrainerTeamMember.cpp
@@ -121,21 +121,21 @@ QDomElement MapTrainerTeamMember::save() const
void MapTrainerTeamMember::setSpecies(const int species) throw(BoundsException)
{
if (pokemod()->speciesIndex(species) == INT_MAX)
- throw(BoundsException(className(), "species"));
+ error<BoundsException>("species");
m_species = species;
}
void MapTrainerTeamMember::setLevel(const int level) throw(BoundsException)
{
if (pokemod()->rules()->maxLevel() < level)
- throw(BoundsException(className(), "level"));
+ error<BoundsException>("level");
m_level = level;
}
void MapTrainerTeamMember::setItem(const int item, const bool state) throw(BoundsException)
{
if (pokemod()->itemIndex(item) == INT_MAX)
- throw(BoundsException(className(), "item"));
+ error<BoundsException>("item");
if (state)
{
if (!m_items.contains(item))
@@ -148,7 +148,7 @@ void MapTrainerTeamMember::setItem(const int item, const bool state) throw(Bound
void MapTrainerTeamMember::setNature(const int nature) throw(BoundsException)
{
if (!pokemod()->rules()->natureAllowed() || (pokemod()->natureIndex(nature) == INT_MAX))
- throw(BoundsException(className(), "nature"));
+ error<BoundsException>("nature");
m_nature = nature;
}