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()
{
for(int i = 0; i < m_NumItems;)
{
DestroyI(&m_aItems[i]);
}
m_NumItems = 0;
}