summaryrefslogtreecommitdiff
path: root/src/cgame/cg_weapons.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_weapons.c')
-rw-r--r--src/cgame/cg_weapons.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c
index 07007759..7e2f78cc 100644
--- a/src/cgame/cg_weapons.c
+++ b/src/cgame/cg_weapons.c
@@ -608,7 +608,8 @@ void CG_RegisterWeapon( int weaponNum ) {
CG_RegisterItemVisuals( item - bg_itemlist );
// load cmodel before model so filecache works
- weaponInfo->weaponModel = trap_R_RegisterModel( item->world_model[0] );
+ if( item->world_model[ 0 ] )
+ weaponInfo->weaponModel = trap_R_RegisterModel( item->world_model[0] );
// calc midpoint for rotation
trap_R_ModelBounds( weaponInfo->weaponModel, mins, maxs );