mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-19 01:02:20 +00:00
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:
parent
690590ca03
commit
90562b5157
|
@ -102,8 +102,5 @@ void CDamageInd::OnInit()
|
|||
|
||||
void CDamageInd::OnReset()
|
||||
{
|
||||
for(int i = 0; i < m_NumItems;)
|
||||
{
|
||||
DestroyI(&m_aItems[i]);
|
||||
}
|
||||
m_NumItems = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue