summaryrefslogtreecommitdiff
path: root/src/p_setup.c
diff options
context:
space:
mode:
authorSimon Howard2006-03-24 16:51:28 +0000
committerSimon Howard2006-03-24 16:51:28 +0000
commit5950a385d4cc9cb2be457bff84fdac3b1026cdd2 (patch)
treef259e8fc1d6a5c56c3d0380a3ed3773150c41126 /src/p_setup.c
parent9772afab3430498714049a32186920e0cb9a67d3 (diff)
downloadchocolate-doom-5950a385d4cc9cb2be457bff84fdac3b1026cdd2.tar.gz
chocolate-doom-5950a385d4cc9cb2be457bff84fdac3b1026cdd2.tar.bz2
chocolate-doom-5950a385d4cc9cb2be457bff84fdac3b1026cdd2.zip
Use "sizeof(line_t *)" not "4". Fixes 64-bit builds.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 432
Diffstat (limited to 'src/p_setup.c')
-rw-r--r--src/p_setup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/p_setup.c b/src/p_setup.c
index a2d27e05..ab3847d1 100644
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: p_setup.c 356 2006-01-29 15:07:12Z fraggle $
+// $Id: p_setup.c 432 2006-03-24 16:51:28Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -45,7 +45,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: p_setup.c 356 2006-01-29 15:07:12Z fraggle $";
+rcsid[] = "$Id: p_setup.c 432 2006-03-24 16:51:28Z fraggle $";
#include <math.h>
@@ -556,7 +556,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++)
{