From 9d2573f708092279a36d0ade5df0d8442670004a Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 13 Mar 2021 11:35:34 +0000 Subject: [PATCH] Fix a couple of issues when importing obj files. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5810 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- iqm/iqm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iqm/iqm.cpp b/iqm/iqm.cpp index 6623188f6..2e69abdfd 100644 --- a/iqm/iqm.cpp +++ b/iqm/iqm.cpp @@ -2590,7 +2590,7 @@ bool parseobj(stream *f) } case 'u': { - if(!strncmp(c, "usemtl", 6)) continue; + if(strncmp(c, "usemtl", 6)) continue; while(isalpha(*c)) c++; while(isspace(*c)) c++; char *name = c; @@ -5732,7 +5732,7 @@ int main(int argc, char **argv) break; if(j == countof(outfiles)) { - for (j = countof(outfiles); j --> 0; ) + for (j = countof(outfiles)-1; j > 0; j--) if (type && !strcasecmp(type, outputtypes[j].extname)) break; outfiles[j] = argv[i]; //first arg is the output name, if its not an export script thingie.