mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +00:00
- silence compiler warning
This commit is contained in:
parent
473221bb33
commit
28f8d4570d
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue