diff options
author | Simon Howard | 2008-09-26 16:27:32 +0000 |
---|---|---|
committer | Simon Howard | 2008-09-26 16:27:32 +0000 |
commit | af2add1cbef05bf05fe6a59f84975caabe0779c0 (patch) | |
tree | c71a9f147e4d4603f0a798a3700669f381dd0731 /src/heretic/p_setup.c | |
parent | 717ca7f67c77b09c9fc6f36936fbc6bdc4ff8e98 (diff) | |
download | chocolate-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.c | 2 |
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++) { |