summaryrefslogtreecommitdiffstats
path: root/pokemod/Store.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Store.cpp')
-rw-r--r--pokemod/Store.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp
index e7a775e7..357cca22 100644
--- a/pokemod/Store.cpp
+++ b/pokemod/Store.cpp
@@ -123,14 +123,11 @@ void Store::setItem(const int itm, const bool it) throw(Exception)
{
if (i.next() == itm)
{
- if (it)
- throw(Exception(className, "item already used"));
- else
+ if (!it)
i.remove();
+ return;
}
}
- if (!it)
- throw(Exception(className, "item wasn\'t being used anyway"));
items.append(itm);
}