summaryrefslogtreecommitdiff
path: root/src/gui/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/models')
-rw-r--r--src/gui/models/typelistmodel.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/models/typelistmodel.h b/src/gui/models/typelistmodel.h
index 2db290e70..bd27fce39 100644
--- a/src/gui/models/typelistmodel.h
+++ b/src/gui/models/typelistmodel.h
@@ -37,8 +37,10 @@ class TypeListModel final : public ListModel
* Used to get number of line in the list
*/
int getNumberOfElements() override final A_WARN_UNUSED
-#ifdef EATHENA_SUPPORT
+#if defined(EATHENA_SUPPORT) && defined(TMWA_SUPPORT)
{ return 3; }
+#elif defined(EATHENA_SUPPORT)
+ { return 1; }
#else
{ return 2; }
#endif
@@ -49,6 +51,7 @@ class TypeListModel final : public ListModel
std::string getElementAt(int elementIndex)
override final A_WARN_UNUSED
{
+#ifdef TMWA_SUPPORT
if (elementIndex == 0)
return "TmwAthena";
else if (elementIndex == 1)
@@ -56,7 +59,13 @@ class TypeListModel final : public ListModel
#ifdef EATHENA_SUPPORT
else if (elementIndex == 2)
return "eAthena";
-#endif
+#endif // EATHENA_SUPPORT
+#else // TMWA_SUPPORT
+#ifdef EATHENA_SUPPORT
+ if (elementIndex == 0)
+ return "eAthena";
+#endif // EATHENA_SUPPORT
+#endif // TMWA_SUPPORT
else
return "Unknown";
}