summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hexen/p_setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hexen/p_setup.c b/src/hexen/p_setup.c
index 6a965ac5..77b7eb5c 100644
--- a/src/hexen/p_setup.c
+++ b/src/hexen/p_setup.c
@@ -617,7 +617,7 @@ void P_GroupLines(void)
}
// build line tables for each sector
- linebuffer = Z_Malloc(total * 4, PU_LEVEL, 0);
+ linebuffer = Z_Malloc(total * sizeof(line_t *), PU_LEVEL, 0);
sector = sectors;
for (i = 0; i < numsectors; i++, sector++)
{