mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Fix leafbrushes allocation from e276ac80
This commit is contained in:
parent
3e1a3c6328
commit
d26c9275f9
1 changed files with 2 additions and 2 deletions
|
@ -1553,7 +1553,7 @@ CMod_LoadLeafBrushes(const char *name, unsigned int **map_leafbrushes,
|
|||
Com_Error(ERR_DROP, "%s: Map %s with no planes", __func__, name);
|
||||
}
|
||||
|
||||
out = *map_leafbrushes = Hunk_Alloc(count * sizeof(*out));
|
||||
out = *map_leafbrushes = Hunk_Alloc((count + 1) * sizeof(*out));
|
||||
*numleafbrushes = count;
|
||||
|
||||
for (i = 0; i < count; i++, in++, out++)
|
||||
|
@ -1585,7 +1585,7 @@ CMod_LoadQLeafBrushes(const char *name, unsigned int **map_leafbrushes,
|
|||
Com_Error(ERR_DROP, "%s: Map %s with no planes", __func__, name);
|
||||
}
|
||||
|
||||
out = *map_leafbrushes = Hunk_Alloc(count * sizeof(*out));
|
||||
out = *map_leafbrushes = Hunk_Alloc((count + 1) * sizeof(*out));
|
||||
*numleafbrushes = count;
|
||||
|
||||
for (i = 0; i < count; i++, in++, out++)
|
||||
|
|
Loading…
Reference in a new issue