diff options
| author | funjoker <funjoker109@gmail.com> | 2021-04-27 11:06:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-27 11:06:56 +0200 |
| commit | f4ef40d9686135088a76c90a3f9de6a6bc10e8f0 (patch) | |
| tree | f0e5b09d0f4eb2c884ad2c30639d34f0a340f613 /src/server/game/Entities | |
| parent | 8b0de23d0e4b15fce8dc8c67f9512f76804d6439 (diff) | |
Core/Conversations: Fix conversation data handling (#26375)
Diffstat (limited to 'src/server/game/Entities')
| -rw-r--r-- | src/server/game/Entities/Conversation/Conversation.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/server/game/Entities/Conversation/Conversation.cpp b/src/server/game/Entities/Conversation/Conversation.cpp index d51053ee15b..015846b88fb 100644 --- a/src/server/game/Entities/Conversation/Conversation.cpp +++ b/src/server/game/Entities/Conversation/Conversation.cpp @@ -133,16 +133,13 @@ bool Conversation::Create(ObjectGuid::LowType lowGuid, uint32 conversationEntry, _duration = conversationTemplate->LastLineEndTime; _textureKitId = conversationTemplate->TextureKitId; - for (ConversationActorTemplate const* actor : conversationTemplate->Actors) + for (ConversationActor const& actor : conversationTemplate->Actors) { - if (actor) - { UF::ConversationActor& actorField = AddDynamicUpdateFieldValue(m_values.ModifyValue(&Conversation::m_conversationData).ModifyValue(&UF::ConversationData::Actors)); - actorField.CreatureID = actor->CreatureId; - actorField.CreatureDisplayInfoID = actor->CreatureModelId; - actorField.Id = actor->Id; + actorField.CreatureID = actor.CreatureId; + actorField.CreatureDisplayInfoID = actor.CreatureDisplayInfoId; + actorField.Id = actor.ActorId; actorField.Type = AsUnderlyingType(ActorType::CreatureActor); - } } for (uint16 actorIndex = 0; actorIndex < conversationTemplate->ActorGuids.size(); ++actorIndex) |
