Fix cgame warnings
This commit is contained in:
parent
621a72e698
commit
4444202a41
7 changed files with 6 additions and 13 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue