From 5fbf25a91c75c59d56cb6b58c899323772f9176a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 16 May 2008 20:48:52 +0000 Subject: [FIX] SoundUI uses correct icon names now [FIX] Setting up combo boxes in UI widgets cleaner [ADD] AbilityEffect widget done [FIX] Fixed up MapEffect setting code git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@142 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/MoveUI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pokemodr/MoveUI.cpp') diff --git a/pokemodr/MoveUI.cpp b/pokemodr/MoveUI.cpp index 8407792c..0582e095 100644 --- a/pokemodr/MoveUI.cpp +++ b/pokemodr/MoveUI.cpp @@ -48,8 +48,7 @@ void MoveUI::refreshGui() for (int i = 0; i < static_cast(original()->pokemod())->typeCount(); ++i) { const Type* type = static_cast(original()->pokemod())->type(i); - varType->addItem(type->name()); - varType->setItemData(i, type->id()); + varType->addItem(type->name(), type->id()); } varNumTargets->setMaximum(static_cast(original()->pokemod())->rules()->maxFight()); } -- cgit