diff options
Diffstat (limited to 'pokemod/CoinListObject.cpp')
| -rw-r--r-- | pokemod/CoinListObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemod/CoinListObject.cpp b/pokemod/CoinListObject.cpp index 6327001b..b5fe3726 100644 --- a/pokemod/CoinListObject.cpp +++ b/pokemod/CoinListObject.cpp @@ -113,7 +113,7 @@ void CoinListObject::setType(const int t) throw(BoundsException) void CoinListObject::setObject(const int o) throw(BoundsException) { - if (((type == Item) && (pokemod.getItemIndex(object) == -1)) || ((type == Species) && (pokemod.getSpeciesIndex(object) == -1))) + if (((type == Item) && (pokemod.getItemIndex(o) == -1)) || ((type == Species) && (pokemod.getSpeciesIndex(o) == -1))) throw(BoundsException(className, "object")); object = o; } |
