From 373e686bf4ecaaabcf80544e74f017eebe05213f Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 4 Aug 2008 03:27:13 +0000 Subject: [FIX] Cleaned up the RC file [FIX] Script editing is getting there (still a little weird...) [FIX] Cleaned up the main file a bit [FIX] Added the Skin class [FIX] All sprites and skins are internally linked now [FIX] No more image restraints (tiles are still enforced so that map editing works) [FIX] Cleaned up checking for valid values when setting in pokemod [FIX] Removed FileDialog files git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@233 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Store.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'pokemod/Store.cpp') diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp index 3acffcac..0a873125 100644 --- a/pokemod/Store.cpp +++ b/pokemod/Store.cpp @@ -53,9 +53,7 @@ void Pokemod::Store::validate() if (m_name.isEmpty()) emit(error("Name is empty")); if (m_item.size()) - { TEST_LIST(setItem, item); - } else emit(error("No items in the store")); TEST_END(); @@ -82,11 +80,8 @@ void Pokemod::Store::setName(const QString& name) void Pokemod::Store::setItem(const int item, const bool state) { if (qobject_cast(pokemod())->itemIndex(item) == INT_MAX) - { emit(error(bounds("item"))); - return; - } - if (state && !m_item.contains(item)) + else if (state && !m_item.contains(item)) { m_item.append(item); emit(changed()); -- cgit