diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-08 20:50:59 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-08 20:50:59 +0100 |
commit | 8eed6ae1794989eb15fe95d867c44c196080c4dd (patch) | |
tree | 2e995dcc6e9c1eb830fe634fe695b0778c4d7957 /src/modelinfo/TimeModelInfo.cpp | |
parent | Merge pull request #909 from Fire-Head/master (diff) | |
download | re3-8eed6ae1794989eb15fe95d867c44c196080c4dd.tar re3-8eed6ae1794989eb15fe95d867c44c196080c4dd.tar.gz re3-8eed6ae1794989eb15fe95d867c44c196080c4dd.tar.bz2 re3-8eed6ae1794989eb15fe95d867c44c196080c4dd.tar.lz re3-8eed6ae1794989eb15fe95d867c44c196080c4dd.tar.xz re3-8eed6ae1794989eb15fe95d867c44c196080c4dd.tar.zst re3-8eed6ae1794989eb15fe95d867c44c196080c4dd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/modelinfo/TimeModelInfo.cpp | 4 |
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; } |