From 9d210476e57949094fdd286001ef4900564edca5 Mon Sep 17 00:00:00 2001 From: Traesh Date: Wed, 7 Nov 2018 20:23:30 +0100 Subject: Core/Creatures: Update creature model handling with new display scale (#22567) --- src/server/scripts/World/npcs_special.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/World') diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp index 8b8e47245e0..e0c648bcfc4 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -2606,8 +2606,8 @@ public: init.SetFacing(o); init.Launch(); who->m_Events.AddEvent(new CastFoodSpell(who, _chairSpells.at(who->GetEntry())), who->m_Events.CalculateTime(1000)); - if (who->GetTypeId() == TYPEID_UNIT) - who->SetDisplayId(who->ToCreature()->GetCreatureTemplate()->Modelid1); + if (Creature* creature = who->ToCreature()) + creature->SetDisplayFromModel(0); } }; -- cgit v1.2.3