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
|
@ -93,7 +93,7 @@ radmap2(int owner,
|
|||
if (!visbuf)
|
||||
visbuf = malloc(WORLD_Y * (WORLD_X + 1));
|
||||
if (!rad) {
|
||||
rad = malloc(WORLD_Y * sizeof(s_char *));
|
||||
rad = malloc(WORLD_Y * sizeof(char *));
|
||||
if (rad && radbuf) {
|
||||
for (x = 0; x < WORLD_Y; x++)
|
||||
rad[x] = &radbuf[(WORLD_X + 1) * x];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue