diff options
author | Simon Howard | 2009-01-27 22:09:40 +0000 |
---|---|---|
committer | Simon Howard | 2009-01-27 22:09:40 +0000 |
commit | c0cbaafa0b421421c5367cd11d7dfaf6f40aefc7 (patch) | |
tree | 9076a665be385ac38fa6c8ea2a6946c3a3bba642 /src | |
parent | d67c5cd7ae78261a730508bc5bb4ed78ccf6fa05 (diff) | |
download | chocolate-doom-c0cbaafa0b421421c5367cd11d7dfaf6f40aefc7.tar.gz chocolate-doom-c0cbaafa0b421421c5367cd11d7dfaf6f40aefc7.tar.bz2 chocolate-doom-c0cbaafa0b421421c5367cd11d7dfaf6f40aefc7.zip |
Calculate size of linebuffer using sizeof (64-bit fix)
Subversion-branch: /branches/raven-branch
Subversion-revision: 1436
Diffstat (limited to 'src')
-rw-r--r-- | src/hexen/p_setup.c | 2 |
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++) { |