mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +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()
|
void CDamageInd::OnReset()
|
||||||
{
|
{
|
||||||
for(int i = 0; i < m_NumItems;)
|
m_NumItems = 0;
|
||||||
{
|
|
||||||
DestroyI(&m_aItems[i]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue