summaryrefslogtreecommitdiffstats
path: root/src/animation/AnimBlendAssocGroup.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-08 20:50:59 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-08 20:50:59 +0100
commit8eed6ae1794989eb15fe95d867c44c196080c4dd (patch)
tree2e995dcc6e9c1eb830fe634fe695b0778c4d7957 /src/animation/AnimBlendAssocGroup.cpp
parentMerge pull request #909 from Fire-Head/master (diff)
downloadre3-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 'src/animation/AnimBlendAssocGroup.cpp')
-rw-r--r--src/animation/AnimBlendAssocGroup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animation/AnimBlendAssocGroup.cpp b/src/animation/AnimBlendAssocGroup.cpp
index fe419f2a..1d234bb8 100644
--- a/src/animation/AnimBlendAssocGroup.cpp
+++ b/src/animation/AnimBlendAssocGroup.cpp
@@ -111,7 +111,7 @@ GetModelFromName(const char *name)
for(i = 0; i < MODELINFOSIZE; i++){
mi = CModelInfo::GetModelInfo(i);
if(mi && mi->GetRwObject() && RwObjectGetType(mi->GetRwObject()) == rpCLUMP &&
- strcmpIgnoringDigits(mi->GetName(), name))
+ strcmpIgnoringDigits(mi->GetModelName(), name))
return mi;
}
return nil;
@@ -134,7 +134,7 @@ CAnimBlendAssocGroup::CreateAssociations(const char *name)
CAnimBlendHierarchy *anim = CAnimManager::GetAnimation(animBlock->firstIndex + i);
CBaseModelInfo *model = GetModelFromName(anim->name);
assert(model);
- printf("Associated anim %s with model %s\n", anim->name, model->GetName());
+ printf("Associated anim %s with model %s\n", anim->name, model->GetModelName());
RpClump *clump = (RpClump*)model->CreateInstance();
#ifdef PED_SKIN
if(IsClumpSkinned(clump))