OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Refactor] #1366 Removed type alias 'TOWN_IDX'
[hengbandforosx/hengbandosx.git]
/
src
/
floor
/
fixed-map-generator.cpp
diff --git
a/src/floor/fixed-map-generator.cpp
b/src/floor/fixed-map-generator.cpp
index
9450b9b
..
e4d6491
100644
(file)
--- a/
src/floor/fixed-map-generator.cpp
+++ b/
src/floor/fixed-map-generator.cpp
@@
-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') {