diff --git a/src/models.c b/src/models.c index 0a692f5c..8a70a811 100644 --- a/src/models.c +++ b/src/models.c @@ -1637,6 +1637,7 @@ static Mesh LoadOBJ(const char *fileName) // NOTE: faces MUST be defined as TRIANGLES (3 vertex per face) while (!feof(objFile)) { + dataType = '\0'; fscanf(objFile, "%c", &dataType); switch (dataType)