Skip to content

Commit 6919ff4

Browse files
committed
Update CModelInfoSA.cpp
1 parent 225b5c4 commit 6919ff4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Client/game_sa/CModelInfoSA.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,11 +1218,6 @@ void CModelInfoSA::StaticReset2DFXEffects()
12181218
MapSet(m_numCustom2dfxEffects, modelInfoInterface, 0);
12191219
}
12201220

1221-
// Remove all custom effects
1222-
for (auto& customEffect : d2fxEffects)
1223-
if (customEffect)
1224-
delete customEffect;
1225-
12261221
// Clear maps
12271222
removedDefaultEffects.clear();
12281223
ms_DefaultEffectsMap.clear();
@@ -2214,7 +2209,6 @@ C2DEffectSAInterface* CModelInfoSA::Add2DFXEffect(const CVector& position, const
22142209

22152210
// Save our effect
22162211
d2fxEffects.push_back(effectInterface);
2217-
22182212
return effectInterface;
22192213
}
22202214

0 commit comments

Comments
 (0)