diff --git a/fast_obj.h b/fast_obj.h index f68e9e9..3069a44 100644 --- a/fast_obj.h +++ b/fast_obj.h @@ -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++;