Skip to content

Commit

Permalink
Update CModelInfoSA.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
FileEX committed Sep 27, 2024
1 parent 225b5c4 commit 6919ff4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Client/game_sa/CModelInfoSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1218,11 +1218,6 @@ void CModelInfoSA::StaticReset2DFXEffects()
MapSet(m_numCustom2dfxEffects, modelInfoInterface, 0);
}

// Remove all custom effects
for (auto& customEffect : d2fxEffects)
if (customEffect)
delete customEffect;

// Clear maps
removedDefaultEffects.clear();
ms_DefaultEffectsMap.clear();
Expand Down Expand Up @@ -2214,7 +2209,6 @@ C2DEffectSAInterface* CModelInfoSA::Add2DFXEffect(const CVector& position, const

// Save our effect
d2fxEffects.push_back(effectInterface);

return effectInterface;
}

Expand Down

0 comments on commit 6919ff4

Please sign in to comment.