summaryrefslogtreecommitdiffstats
path: root/pokemodr/MapWildListUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/MapWildListUI.cpp')
-rw-r--r--pokemodr/MapWildListUI.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/pokemodr/MapWildListUI.cpp b/pokemodr/MapWildListUI.cpp
index 87033b29..52b67b78 100644
--- a/pokemodr/MapWildListUI.cpp
+++ b/pokemodr/MapWildListUI.cpp
@@ -15,23 +15,23 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// Qt includes
-#include <QListWidgetItem>
-#include <QVariant>
-
-// General includes
-#include <BugCatcher.h>
-#include <Exception.h>
+// Header include
+#include "MapWildListUI.h"
// Pokemod includes
-#include <Item.h>
-#include <ItemEffect.h>
-#include <Pokemod.h>
-#include <MapWildList.h>
-#include <Time.h>
+#include "../pokemod/Item.h"
+#include "../pokemod/ItemEffect.h"
+#include "../pokemod/Pokemod.h"
+#include "../pokemod/MapWildList.h"
+#include "../pokemod/Time.h"
-// Header include
-#include "MapWildListUI.h"
+// General includes
+#include "../general/BugCatcher.h"
+#include "../general/Exception.h"
+
+// Qt includes
+#include <QListWidgetItem>
+#include <QVariant>
MapWildListUI::MapWildListUI(MapWildList* wildList, QWidget* parent) :
ObjectUI(parent),
@@ -54,9 +54,9 @@ void MapWildListUI::refreshGui()
{
varValue->clear();
varScope->clear();
- for (int i = 0; i < m_wildList->pokemod()->itemCount(); ++i)
+ for (int i = 0; i < static_cast<const Pokemod*>(m_wildList->pokemod())->itemCount(); ++i)
{
- const Item* item = m_wildList->pokemod()->item(i);
+ const Item* item = static_cast<const Pokemod*>(m_wildList->pokemod())->item(i);
for (int j = 0; j < item->effectCount(); ++j)
{
const ItemEffect* effect = item->effect(j);
@@ -73,9 +73,9 @@ void MapWildListUI::refreshGui()
}
}
varTimes->clear();
- for (int i = 0; i < m_wildList->pokemod()->timeCount(); ++i)
+ for (int i = 0; i < static_cast<const Pokemod*>(m_wildList->pokemod())->timeCount(); ++i)
{
- const Time* time = m_wildList->pokemod()->time(i);
+ const Time* time = static_cast<const Pokemod*>(m_wildList->pokemod())->time(i);
QListWidgetItem* widgetItem = new QListWidgetItem(time->name(), varTimes);
widgetItem->setData(Qt::UserRole, time->id());
}