Recent s_char purge changed element types to s_char *, but missed
patterns malloc(N * sizeof(s_char *)), fix.
This commit is contained in:
parent
4cf7389ecd
commit
0a3a73cf3d
7 changed files with 7 additions and 7 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue