Make CDamageInd::OnReset function more efficient

There is no need to copy the items if we only want to delete all of them.
This commit is contained in:
Robert Müller 2024-07-26 18:25:51 +02:00
parent 690590ca03
commit 90562b5157

View file

@ -102,8 +102,5 @@ void CDamageInd::OnInit()
void CDamageInd::OnReset() void CDamageInd::OnReset()
{ {
for(int i = 0; i < m_NumItems;) m_NumItems = 0;
{
DestroyI(&m_aItems[i]);
}
} }