diff --git a/source/quakefs.c b/source/quakefs.c index 3425a72..e8e9773 100644 --- a/source/quakefs.c +++ b/source/quakefs.c @@ -179,7 +179,7 @@ COM_FileBase (char *in, char *out) while (s != in && *s != '.') s--; - for (s2 = s; *s2 && *s2 != '/'; s2--); + for (s2 = s; s2 != in && *s2 && *s2 != '/'; s2--); if (s - s2 < 2) strcpy (out, "?model?");