From 2d3ab5c520bb61fecb66e0f143d93c3386bf451a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 19 Feb 2008 22:02:19 +0000 Subject: [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 --- pokemod/Store.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'pokemod/Store.cpp') 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); } -- cgit