- silence compiler warning

This commit is contained in:
Christoph Oelckers 2022-11-25 12:27:54 +01:00
parent 473221bb33
commit 28f8d4570d

View file

@ -436,7 +436,7 @@ int IQMModel::FindFrame(const char* name, bool nodefault)
{ {
// [MK] allow looking up frames by animation name plus offset (using a colon as separator) // [MK] allow looking up frames by animation name plus offset (using a colon as separator)
const char* colon = strrchr(name,':'); const char* colon = strrchr(name,':');
int nlen = (colon==nullptr)?strlen(name):(colon-name); size_t nlen = (colon==nullptr)?strlen(name):(colon-name);
for (unsigned i = 0; i < Anims.Size(); i++) for (unsigned i = 0; i < Anims.Size(); i++)
{ {
if (!strnicmp(name, Anims[i].Name.GetChars(), nlen)) if (!strnicmp(name, Anims[i].Name.GetChars(), nlen))