Core/Conversations: Replace _participants with generic personal object implementation

This commit is contained in:
Shauren
2021-10-09 13:30:47 +02:00
parent 3322f34819
commit 3fe9b0a296
5 changed files with 11 additions and 29 deletions

View File

@@ -2433,7 +2433,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
if (Player* playerTarget = target->ToPlayer())
{
Conversation* conversation = Conversation::CreateConversation(e.action.conversation.id, playerTarget,
*playerTarget, { playerTarget->GetGUID() }, nullptr);
*playerTarget, playerTarget->GetGUID(), nullptr);
if (!conversation)
TC_LOG_WARN("scripts.ai", "SmartScript::ProcessAction:: SMART_ACTION_CREATE_CONVERSATION: id %u, baseObject %s, target %s - failed to create conversation",
e.action.conversation.id, !baseObject ? "" : baseObject->GetName().c_str(), playerTarget->GetName().c_str());