From e6b4326f86dad46c0c0115355be449c4deef8983 Mon Sep 17 00:00:00 2001 From: Dmitry Shapovalov Date: Mon, 3 Jun 2013 14:56:25 +0600 Subject: [PATCH] Code duplication in idWeapon::Clear --- neo/d3xp/Weapon.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/neo/d3xp/Weapon.cpp b/neo/d3xp/Weapon.cpp index 1afd7caf..babad778 100644 --- a/neo/d3xp/Weapon.cpp +++ b/neo/d3xp/Weapon.cpp @@ -747,11 +747,6 @@ void idWeapon::Clear() WEAPON_RAISEWEAPON.Unlink(); WEAPON_LOWERWEAPON.Unlink(); - if( muzzleFlashHandle != -1 ) - { - gameRenderWorld->FreeLightDef( muzzleFlashHandle ); - muzzleFlashHandle = -1; - } if( muzzleFlashHandle != -1 ) { gameRenderWorld->FreeLightDef( muzzleFlashHandle );