Fix visplanes getting allocated twice

I guess that is legacy remnant stuff
This commit is contained in:
FlykeSpice 2021-10-11 00:20:11 -04:00
parent 923e6f31aa
commit a8c6a65260

View file

@ -318,7 +318,7 @@ static visplane_t *new_visplane(unsigned hash)
visplane_t *check = freetail;
if (!check)
{
check = calloc(2, sizeof (*check));
check = malloc(sizeof (*check));
if (check == NULL) I_Error("%s: Out of memory", "new_visplane"); // FIXME: ugly
}
else