Fix typo in previous change

This commit is contained in:
Richard Knight 2019-05-22 20:39:11 +01:00
parent c9aff21d1c
commit 68692e0d42

View file

@ -803,7 +803,7 @@ const char* parse_usemtl(fastObjData* data, const char* ptr)
while (idx < array_size(data->mesh->materials))
{
mtl = &data->mesh->materials[idx];
if (mtl->name && (mtl->name, s, e))
if (mtl->name && string_equal(mtl->name, s, e))
break;
idx++;