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 f37e78e306
commit 03457ba405

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