diff options
Diffstat (limited to 'pokemod/Store.cpp')
| -rw-r--r-- | pokemod/Store.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp index 1b5333d4..0559ba25 100644 --- a/pokemod/Store.cpp +++ b/pokemod/Store.cpp @@ -27,19 +27,19 @@ #include "Store.h" Store::Store(const Pokemod& par, const unsigned _id) : - Object(par, _id), + Object("Store", par, _id), name("") { } Store::Store(const Pokemod& par, const Store& s, const unsigned _id) : - Object(par, _id) + Object("Store", par, _id) { *this = s; } Store::Store(const Pokemod& par, const QString& fname, const unsigned _id) : - Object(par, _id) + Object("Store", par, _id) { load(fname, _id); } @@ -118,19 +118,19 @@ void Store::setName(const QString& n) void Store::setItem(const unsigned itm, const bool it) throw(Exception) { if (pokemod.getItemIndex(itm) == UINT_MAX) - throw(BoundsException("Store", "item")); + throw(BoundsException(className, "item")); for (QMutableListIterator<unsigned> i(items); i.hasNext(); ) { if (i.next() == itm) { if (it) - throw(Exception("Store", "item already used")); + throw(Exception(className, "item already used")); else i.remove(); } } if (!it) - throw(Exception("Store", "item wasn\'t being used anyway")); + throw(Exception(className, "item wasn\'t being used anyway")); items.append(itm); } |
