diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-08 21:53:11 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-08 21:53:11 +0200 |
commit | faa9e6441bc4b02362620d0cf599a8513744f4cc (patch) | |
tree | b26eccf8fbbda2a4af0b7f0b3cdacdb6c4253cef /src/modelinfo/ModelInfo.cpp | |
parent | 68e8c1ce04469a0419e6205bfba0eb2a1e9290c9 (diff) |
Use original names
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; |