diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-08 20:53:42 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-08 20:53:42 +0100 |
commit | af09cb06f5c148f16c1bd1b5f20e766a15abe8c4 (patch) | |
tree | 0260b5d6504e05b1e6f009015638c7ef0115ca5f /src/modelinfo/ModelInfo.cpp | |
parent | CKeyGen (diff) | |
parent | Use original names (diff) | |
download | re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.gz re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.bz2 re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.lz re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.xz re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.tar.zst re3-af09cb06f5c148f16c1bd1b5f20e766a15abe8c4.zip |
Diffstat (limited to 'src/modelinfo/ModelInfo.cpp')
-rw-r--r-- | src/modelinfo/ModelInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modelinfo/ModelInfo.cpp b/src/modelinfo/ModelInfo.cpp index 9e5b0470..0a542cf6 100644 --- a/src/modelinfo/ModelInfo.cpp +++ b/src/modelinfo/ModelInfo.cpp @@ -189,7 +189,7 @@ CModelInfo::GetModelInfo(const char *name, int *id) CBaseModelInfo *modelinfo; for(int i = 0; i < MODELINFOSIZE; i++){ modelinfo = CModelInfo::ms_modelInfoPtrs[i]; - if(modelinfo && !CGeneral::faststricmp(modelinfo->GetName(), name)){ + if(modelinfo && !CGeneral::faststricmp(modelinfo->GetModelName(), name)){ if(id) *id = i; return modelinfo; @@ -207,7 +207,7 @@ CModelInfo::GetModelInfo(const char *name, int minIndex, int maxIndex) CBaseModelInfo *modelinfo; for(int i = minIndex; i <= maxIndex; i++){ modelinfo = CModelInfo::ms_modelInfoPtrs[i]; - if(modelinfo && !CGeneral::faststricmp(modelinfo->GetName(), name)) + if(modelinfo && !CGeneral::faststricmp(modelinfo->GetModelName(), name)) return modelinfo; } return nil; |