summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c
index ca443f2..ee850d6 100644
--- a/src/game/bg_misc.c
+++ b/src/game/bg_misc.c
@@ -991,7 +991,7 @@ const buildableAttributes_t *BG_Buildable( buildable_t buildable, const vec3_t c
else
return &nullBuildable;
- if( attr->cuboid )
+ if( attr->cuboid && cuboidSize )
{
volume = cuboidSize[ 0 ] * cuboidSize[ 1 ] * cuboidSize[ 2 ] * 5.5306341e-5; // NOTE: cubic quake units -> cubic meters ( 1qu = 0.0381m )
memcpy( &cuboidAttr, attr, sizeof( buildableAttributes_t ) );