summaryrefslogtreecommitdiff
path: root/src/cgame/cg_weapons.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-10-25 19:13:00 +0000
committerTim Angus <tim@ngus.net>2001-10-25 19:13:00 +0000
commit173aa35bf89dc6ce40263575e9eb81b9a8c72587 (patch)
treedd0eff026788a953a5a277db42bc23371f68898a /src/cgame/cg_weapons.c
parent37ff575d8820d46f286204b1fa5abc33b06ff83f (diff)
More hacking of the ctags setup
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 );