Refactor some of the code.
This commit is contained in:
@@ -41,7 +41,7 @@ void material_collection_free(material_collection_t* materials)
|
||||
{
|
||||
if (materials->buffer != NULL)
|
||||
{
|
||||
for (uint8_t i; i < materials->count; i++)
|
||||
for (uint8_t i = 0; i < materials->count; i++)
|
||||
{
|
||||
void* data = materials->buffer[i].data;
|
||||
if (data != NULL)
|
||||
|
||||
Reference in New Issue
Block a user