]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/maps.c
Remove useless multiplications with sizeof(char) and sizeof(s_char).
[empserver] / src / lib / common / maps.c
index 558b6b161d75a5bf3f030957d9a43eb7c3e72751..f3655e86e6452c618a1a1448372f0786825800f9 100644 (file)
@@ -71,7 +71,7 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp)
     static s_char **wmap = NULL;
 
     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) {