Use range loop (if possible)

This commit is contained in:
Filip Gawin
2019-02-01 19:47:07 +01:00
committed by Jordan Woyak
parent 0fa4812c2f
commit 0ede5d1537
15 changed files with 92 additions and 100 deletions

View File

@ -45,9 +45,9 @@ void Init()
void Shutdown()
{
for (int i = 0; i < NUM_OBJECT_BUFFERS; i++)
for (auto& slot : ObjectBuffer)
{
delete[] ObjectBuffer[i];
delete[] slot;
}
}