Recent s_char purge changed element types to s_char *, but missed

patterns malloc(N * sizeof(s_char *)), fix.
This commit is contained in:
Markus Armbruster 2006-04-29 16:14:48 +00:00
parent 4cf7389ecd
commit 0a3a73cf3d
7 changed files with 7 additions and 7 deletions

View file

@ -73,7 +73,7 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp)
if (!wmapbuf)
wmapbuf = malloc(WORLD_Y * MAPWIDTH(1));
if (!wmap) {
wmap = malloc(WORLD_Y * sizeof(s_char *));
wmap = malloc(WORLD_Y * sizeof(char *));
if (wmap && wmapbuf) {
for (i = 0; i < WORLD_Y; i++)
wmap[i] = &wmapbuf[MAPWIDTH(1) * i];