diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 14:18:48 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 14:18:48 +0100 |
commit | e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e (patch) | |
tree | 924da3fee9f1013e15de1ffa6a7f72e9537e46e1 /src/modelinfo/TimeModelInfo.cpp | |
parent | Merge pull request #895 from ShFil119/miami_audio (diff) | |
download | re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.gz re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.bz2 re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.lz re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.xz re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.zst re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/modelinfo/TimeModelInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modelinfo/TimeModelInfo.cpp b/src/modelinfo/TimeModelInfo.cpp index d4f92293..c1c18dac 100644 --- a/src/modelinfo/TimeModelInfo.cpp +++ b/src/modelinfo/TimeModelInfo.cpp @@ -2,6 +2,7 @@ #include "Camera.h" #include "ModelInfo.h" +#include "General.h" CTimeModelInfo* CTimeModelInfo::FindOtherTimeModel(void) @@ -23,7 +24,7 @@ CTimeModelInfo::FindOtherTimeModel(void) for(i = 0; i < MODELINFOSIZE; i++){ CBaseModelInfo *mi = CModelInfo::GetModelInfo(i); if (mi && mi->GetModelType() == MITYPE_TIME && - strncmp(name, mi->GetName(), 24) == 0){ + !CGeneral::faststrncmp(name, mi->GetName(), MAX_MODEL_NAME)){ m_otherTimeModelID = i; return (CTimeModelInfo*)mi; } |