diff options
Diffstat (limited to 'pokemod/Nature.cpp')
| -rw-r--r-- | pokemod/Nature.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pokemod/Nature.cpp b/pokemod/Nature.cpp index 7f84286e..85fd45ea 100644 --- a/pokemod/Nature.cpp +++ b/pokemod/Nature.cpp @@ -90,14 +90,14 @@ void Nature::setName(const QString& name) void Nature::setStat(const int stat, const Fraction& multiplier) throw(Exception) { if ((pokemod()->rules()->specialSplit() ? Pokemod::ST_End_GSC : Pokemod::ST_End_RBY) <= stat) - throw(BoundsException(className(), "stat")); + error<BoundsException>("stat"); m_stat[stat] = multiplier; } void Nature::setWeight(const int weight) throw(BoundsException) { if (!weight) - throw(BoundsException(className(), "weight")); + error<BoundsException>("weight"); m_weight = weight; } @@ -109,7 +109,7 @@ QString Nature::name() const Fraction Nature::stat(const int stat) const throw(BoundsException) { if ((pokemod()->rules()->specialSplit() ? Pokemod::ST_End_GSC : Pokemod::ST_End_RBY) <= stat) - throw(BoundsException(className(), "stat")); + warning<BoundsException>("stat"); return m_stat[stat]; } |
