diff options
Diffstat (limited to '')
-rw-r--r-- | src/control/Script5.cpp | 2 | ||||
-rw-r--r-- | src/control/Script7.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp index 822a70a8..f970cf89 100644 --- a/src/control/Script5.cpp +++ b/src/control/Script5.cpp @@ -2759,7 +2759,7 @@ void CTheScripts::UpdateObjectIndices() CBaseModelInfo* pModel = CModelInfo::GetModelInfo(j); if (!pModel) continue; - strcpy(name, pModel->GetName()); + strcpy(name, pModel->GetModelName()); #ifdef FIX_BUGS for (int k = 0; k < USED_OBJECT_NAME_LENGTH && name[k]; k++) #else diff --git a/src/control/Script7.cpp b/src/control/Script7.cpp index 1eaa6cd0..5a70fd28 100644 --- a/src/control/Script7.cpp +++ b/src/control/Script7.cpp @@ -625,7 +625,7 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command) key[i] = tolower(key[i]); CPed* pPed = CWorld::Players[ScriptParams[0]].m_pPed; script_assert(pPed); - UpdateCompareFlag(strcmp(key, CModelInfo::GetModelInfo(pPed->GetModelIndex())->GetName()) == 0); + UpdateCompareFlag(strcmp(key, CModelInfo::GetModelInfo(pPed->GetModelIndex())->GetModelName()) == 0); return 0; } case COMMAND_SET_PLAYER_CAN_DO_DRIVE_BY: |