diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-02-19 22:02:19 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-02-19 22:02:19 +0000 |
| commit | 2d3ab5c520bb61fecb66e0f143d93c3386bf451a (patch) | |
| tree | 0e8d918c7485505c80edb1922bcba201e3f7c0be /pokemod/Store.cpp | |
| parent | a8f15fe76349d6f59464a7cc66432ff7f394f30d (diff) | |
| download | sigen-2d3ab5c520bb61fecb66e0f143d93c3386bf451a.tar.gz sigen-2d3ab5c520bb61fecb66e0f143d93c3386bf451a.tar.xz sigen-2d3ab5c520bb61fecb66e0f143d93c3386bf451a.zip | |
[FIX] Store item setting is now less touchy
[FIX] Some ui forms were missing things
[FIX] UI logic with having ID data embedded instead of roundabout resolution
[ADD] Fleshed out more for pokemodr TODO
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@64 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Store.cpp')
| -rw-r--r-- | pokemod/Store.cpp | 7 |
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); } |
