Core/Conversation: Log error if conversation is started multiple times

This commit is contained in:
ModoX
2023-12-31 15:58:07 +01:00
parent ee7b0e82fa
commit a5d2d6e465

View File

@@ -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;