diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-05-16 20:48:52 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-05-16 20:48:52 +0000 |
| commit | 5fbf25a91c75c59d56cb6b58c899323772f9176a (patch) | |
| tree | 7d97e0d0b745cbc0b2073f0906de42da28487f39 /pokemodr/MoveUI.cpp | |
| parent | 9c1388c7964bd3b4ae147e39c146c96dc20947e9 (diff) | |
| download | sigen-5fbf25a91c75c59d56cb6b58c899323772f9176a.tar.gz sigen-5fbf25a91c75c59d56cb6b58c899323772f9176a.tar.xz sigen-5fbf25a91c75c59d56cb6b58c899323772f9176a.zip | |
[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
Diffstat (limited to 'pokemodr/MoveUI.cpp')
| -rw-r--r-- | pokemodr/MoveUI.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<const Pokemod*>(original()->pokemod())->typeCount(); ++i) { const Type* type = static_cast<const Pokemod*>(original()->pokemod())->type(i); - varType->addItem(type->name()); - varType->setItemData(i, type->id()); + varType->addItem(type->name(), type->id()); } varNumTargets->setMaximum(static_cast<const Pokemod*>(original()->pokemod())->rules()->maxFight()); } |
