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
|
@ -84,7 +84,7 @@ path(void)
|
|||
if (!mapbuf)
|
||||
mapbuf = malloc(WORLD_Y * MAPWIDTH(3));
|
||||
if (!map) {
|
||||
map = malloc(WORLD_Y * sizeof(s_char *));
|
||||
map = malloc(WORLD_Y * sizeof(char *));
|
||||
if (map && mapbuf) {
|
||||
for (i = 0; i < WORLD_Y; i++)
|
||||
map[i] = &mapbuf[MAPWIDTH(3) * i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue