summaryrefslogtreecommitdiff
path: root/src/heretic/p_setup.c
diff options
context:
space:
mode:
authorSimon Howard2008-09-26 16:27:32 +0000
committerSimon Howard2008-09-26 16:27:32 +0000
commitaf2add1cbef05bf05fe6a59f84975caabe0779c0 (patch)
treec71a9f147e4d4603f0a798a3700669f381dd0731 /src/heretic/p_setup.c
parent717ca7f67c77b09c9fc6f36936fbc6bdc4ff8e98 (diff)
downloadchocolate-doom-af2add1cbef05bf05fe6a59f84975caabe0779c0.tar.gz
chocolate-doom-af2add1cbef05bf05fe6a59f84975caabe0779c0.tar.bz2
chocolate-doom-af2add1cbef05bf05fe6a59f84975caabe0779c0.zip
Use sizeof for size of types, rather than hard-coding the size.
Subversion-branch: /branches/raven-branch Subversion-revision: 1289
Diffstat (limited to 'src/heretic/p_setup.c')
-rw-r--r--src/heretic/p_setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/heretic/p_setup.c b/src/heretic/p_setup.c
index b1a4f2ce..11e3ad95 100644
--- a/src/heretic/p_setup.c
+++ b/src/heretic/p_setup.c
@@ -484,7 +484,7 @@ void P_GroupLines(void)
}
// build line tables for each sector
- linebuffer = Z_Malloc(total * 4, PU_LEVEL, 0);
+ linebuffer = Z_Malloc(total * sizeof(linebuffer_t *), PU_LEVEL, 0);
sector = sectors;
for (i = 0; i < numsectors; i++, sector++)
{