OSDN Git Service

[Refactor] #1366 Removed type alias 'TOWN_IDX'
[hengbandforosx/hengbandosx.git] / src / floor / fixed-map-generator.cpp
index 9450b9b..e4d6491 100644 (file)
@@ -361,7 +361,7 @@ static bool parse_qtw_M(qtwg_type *qtwg_ptr, char **zz)
         return true;
 
     if (zz[0][0] == 'T') {
-        max_towns = (TOWN_IDX)atoi(zz[1]);
+        max_towns = static_cast<int16_t>(atoi(zz[1]));
     } else if (zz[0][0] == 'Q') {
         max_q_idx = (QUEST_IDX)atoi(zz[1]);
     } else if (zz[0][0] == 'R') {