Fix typo in game/Weapon.cpp from "Fix renderlights ..." commit

This commit is contained in:
Daniel Gibson 2022-12-29 01:42:23 +01:00
parent a7e4eb8644
commit ee4eced60b

View file

@ -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 );
}