OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1f94a4
)
terrain_table配列の範囲外参照をしている箇所を修正。
author
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 12 Feb 2010 14:40:38 +0000
(14:40 +0000)
committer
habu
<habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 12 Feb 2010 14:40:38 +0000
(14:40 +0000)
src/wild.c
patch
|
blob
|
history
diff --git
a/src/wild.c
b/src/wild.c
index
8dce78e
..
528ca5c
100644
(file)
--- a/
src/wild.c
+++ b/
src/wild.c
@@
-926,8
+926,11
@@
static void init_terrain_table(int terrain, s16b feat_global, cptr fmt, ...)
}
}
- feat = terrain_table[terrain][cur];
- for (; cur < MAX_FEAT_IN_TERRAIN; cur++) terrain_table[terrain][cur] = feat;
+ /* Paranoia */
+ if (cur < MAX_FEAT_IN_TERRAIN)
+ {
+ plog_fmt("Too few parameters");
+ }
/* End the varargs stuff */
va_end(vp);