X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=src%2Flib%2Fas%2Fas_cache.c;h=dbfa266b5df75c8a472097d094b862071fb638a4;hp=737300f988f32096f43df0b9f12045d42c9b3b00;hb=9b7adfbe;hpb=5f263a7753dc728809ff85c993af975f6c76e61e diff --git a/src/lib/as/as_cache.c b/src/lib/as/as_cache.c index 737300f98..dbfa266b5 100644 --- a/src/lib/as/as_cache.c +++ b/src/lib/as/as_cache.c @@ -52,7 +52,7 @@ static struct as_frompath **fromhead = (struct as_frompath **)0; /* Note that we only want to cache during updates. Other times, it * probably doesn't make much sense, but can be done. */ -static int as_cachepath_on = 0; /* Default to off */ +static int as_cachepath_on = 0; /* Default to off */ void as_enable_cachepath() @@ -107,9 +107,9 @@ as_add_cachepath(struct as_data *adp) /* And set some stuff */ from->x = adp->from.x; /* Here we malloc a whole bunch of tolist pointers. */ - from->tolist = (struct as_topath **)calloc(1, - sizeof(struct as_topath *) * - WORLD_Y); + from->tolist = (struct as_topath **)calloc(1, + sizeof(struct as_topath + *) * WORLD_Y); /* Now, add from to the global list */ from->next = fromhead[adp->from.y]; fromhead[adp->from.y] = from;