diff --git a/neo/game/Weapon.cpp b/neo/game/Weapon.cpp index c78bc3b5..b1d6c993 100644 --- a/neo/game/Weapon.cpp +++ b/neo/game/Weapon.cpp @@ -463,7 +463,7 @@ void idWeapon::Restore( idRestoreGame *savefile ) { } savefile->ReadInt( muzzleFlashHandle ); savefile->ReadRenderLight( muzzleFlash ); - if ( muzzleFlashHandle = -1 ) { // DG: enforce getting fresh handle + if ( muzzleFlashHandle != -1 ) { // DG: enforce getting fresh handle muzzleFlashHandle = gameRenderWorld->AddLightDef( &muzzleFlash ); }