summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/TimeModelInfo.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-08 20:53:11 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-08 20:53:11 +0100
commitfaa9e6441bc4b02362620d0cf599a8513744f4cc (patch)
treeb26eccf8fbbda2a4af0b7f0b3cdacdb6c4253cef /src/modelinfo/TimeModelInfo.cpp
parentAdd multisampling (diff)
downloadre3-faa9e6441bc4b02362620d0cf599a8513744f4cc.tar
re3-faa9e6441bc4b02362620d0cf599a8513744f4cc.tar.gz
re3-faa9e6441bc4b02362620d0cf599a8513744f4cc.tar.bz2
re3-faa9e6441bc4b02362620d0cf599a8513744f4cc.tar.lz
re3-faa9e6441bc4b02362620d0cf599a8513744f4cc.tar.xz
re3-faa9e6441bc4b02362620d0cf599a8513744f4cc.tar.zst
re3-faa9e6441bc4b02362620d0cf599a8513744f4cc.zip
Diffstat (limited to 'src/modelinfo/TimeModelInfo.cpp')
-rw-r--r--src/modelinfo/TimeModelInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modelinfo/TimeModelInfo.cpp b/src/modelinfo/TimeModelInfo.cpp
index c1c18dac..0db5fb78 100644
--- a/src/modelinfo/TimeModelInfo.cpp
+++ b/src/modelinfo/TimeModelInfo.cpp
@@ -11,7 +11,7 @@ CTimeModelInfo::FindOtherTimeModel(void)
char *p;
int i;
- strcpy(name, GetName());
+ strcpy(name, GetModelName());
// change _nt to _dy
if(p = strstr(name, "_nt"))
strncpy(p, "_dy", 4);
@@ -24,7 +24,7 @@ CTimeModelInfo::FindOtherTimeModel(void)
for(i = 0; i < MODELINFOSIZE; i++){
CBaseModelInfo *mi = CModelInfo::GetModelInfo(i);
if (mi && mi->GetModelType() == MITYPE_TIME &&
- !CGeneral::faststrncmp(name, mi->GetName(), MAX_MODEL_NAME)){
+ !CGeneral::faststrncmp(name, mi->GetModelName(), MAX_MODEL_NAME)){
m_otherTimeModelID = i;
return (CTimeModelInfo*)mi;
}