Remove useless multiplications with sizeof(char) and sizeof(s_char).
Replace by literal 1 in other contexts.
This commit is contained in:
parent
8ca2468706
commit
8cd3845b08
11 changed files with 14 additions and 17 deletions
|
@ -236,7 +236,7 @@ nav_map(int x, int y, int show_designations)
|
|||
if (!snxtsct(&ns, what))
|
||||
return RET_FAIL;
|
||||
if (!wmapbuf)
|
||||
wmapbuf = malloc((WORLD_Y * MAPWIDTH(1)) * sizeof(s_char));
|
||||
wmapbuf = malloc(WORLD_Y * MAPWIDTH(1));
|
||||
if (!wmap) {
|
||||
wmap = malloc(WORLD_Y * sizeof(s_char *));
|
||||
if (wmap && wmapbuf) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue