mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'myfixes' into 'next'
Fix visplanes getting allocated twice (backport from srb2kart) See merge request STJr/SRB2!1636
This commit is contained in:
commit
dad13f2dde
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue