foxygit / doom Log in
commit c0cbaafa0b421421c5367cd11d7dfaf6f40aefc7
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Tue Jan 27 22:09:40 2009 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Tue Jan 27 22:09:40 2009 +0000

    Calculate size of linebuffer using sizeof (64-bit fix)

    Subversion-branch: /branches/raven-branch
    Subversion-revision: 1436
---
 src/hexen/p_setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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++)
     {