summaryrefslogtreecommitdiffstats
path: root/pokemodr/MapWildListUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-05-26 07:08:59 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-05-26 07:08:59 +0000
commit9200ed0568719fc3ffbf9c1f2fd07a667097b875 (patch)
tree0a7df5baf46c1b5f51ec0215f68ecd91cfa49863 /pokemodr/MapWildListUI.cpp
parent2be7d8f347d2f1e21832b29063609adc82d7bbfa (diff)
downloadsigen-9200ed0568719fc3ffbf9c1f2fd07a667097b875.tar.gz
sigen-9200ed0568719fc3ffbf9c1f2fd07a667097b875.tar.xz
sigen-9200ed0568719fc3ffbf9c1f2fd07a667097b875.zip
[FIX] Recent files now works
[FIX] Various UI fixes [FIX] Scripts are now escaped correctly in the XML git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@176 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/MapWildListUI.cpp')
-rw-r--r--pokemodr/MapWildListUI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemodr/MapWildListUI.cpp b/pokemodr/MapWildListUI.cpp
index c9e39b69..6eb6fa92 100644
--- a/pokemodr/MapWildListUI.cpp
+++ b/pokemodr/MapWildListUI.cpp
@@ -43,9 +43,9 @@ void MapWildListUI::initGui()
void MapWildListUI::refreshGui()
{
varTimes->clear();
- for (int i = 0; i < static_cast<const Pokemod*>(original()->pokemod())->timeCount(); ++i)
+ for (int i = 0; i < pokemod()->timeCount(); ++i)
{
- const Time* time = static_cast<const Pokemod*>(original()->pokemod())->time(i);
+ const Time* time = pokemod()->time(i);
QListWidgetItem* widgetItem = new QListWidgetItem(time->name(), varTimes);
widgetItem->setData(Qt::UserRole, time->id());
}