diff options
Diffstat (limited to 'pokemod/Tile.cpp')
| -rw-r--r-- | pokemod/Tile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pokemod/Tile.cpp b/pokemod/Tile.cpp index 80f7d7b4..833e7f78 100644 --- a/pokemod/Tile.cpp +++ b/pokemod/Tile.cpp @@ -149,8 +149,10 @@ void Tile::setFrom(const int direction, const bool state) throw(BoundsException) m_from[direction] = state; } -void Tile::setWildChance(const Fraction& wildChance) throw(Exception) +void Tile::setWildChance(const Fraction& wildChance) throw(BoundsException) { + if (1 < wildChance) + error<BoundsException>("wildChance"); m_wildChance = wildChance; } |
