mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Conversation: Log error if conversation is started multiple times
This commit is contained in:
@@ -240,6 +240,12 @@ bool Conversation::Start()
|
||||
}
|
||||
}
|
||||
|
||||
if (IsInWorld())
|
||||
{
|
||||
TC_LOG_ERROR("entities.conversation", "Attempted to start conversation (Id: {}) multiple times.", GetEntry());
|
||||
return true; // returning true to not cause delete in Conversation::CreateConversation if convo is already started in ConversationScript::OnConversationCreate
|
||||
}
|
||||
|
||||
if (!GetMap()->AddToMap(this))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user