Fix cgame warnings

This commit is contained in:
Tim Angus 2014-09-01 10:47:15 +01:00
parent 621a72e698
commit 4444202a41
7 changed files with 6 additions and 13 deletions

View file

@ -350,7 +350,7 @@ static void CG_Item( centity_t *cent ) {
trap_R_AddRefEntityToScene(&ent);
#ifdef MISSIONPACK
if ( item->giType == IT_WEAPON && wi->barrelModel ) {
if ( item->giType == IT_WEAPON && wi && wi->barrelModel ) {
refEntity_t barrel;
memset( &barrel, 0, sizeof( barrel ) );