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

@ -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];