summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/TimeModelInfo.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-25 14:18:13 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-25 14:18:13 +0100
commitb12eef1d56575206538abed426a296fefe22e90e (patch)
treea029f5ec513ec487d477d791e21f90ae1287965a /src/modelinfo/TimeModelInfo.cpp
parentFix debug menu memory leak (diff)
downloadre3-b12eef1d56575206538abed426a296fefe22e90e.tar
re3-b12eef1d56575206538abed426a296fefe22e90e.tar.gz
re3-b12eef1d56575206538abed426a296fefe22e90e.tar.bz2
re3-b12eef1d56575206538abed426a296fefe22e90e.tar.lz
re3-b12eef1d56575206538abed426a296fefe22e90e.tar.xz
re3-b12eef1d56575206538abed426a296fefe22e90e.tar.zst
re3-b12eef1d56575206538abed426a296fefe22e90e.zip
Diffstat (limited to 'src/modelinfo/TimeModelInfo.cpp')
-rw-r--r--src/modelinfo/TimeModelInfo.cpp3
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;
}