mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Entities/Unit: Adjust an overzealous assert to not catch self references, and add the inverse assert too. 396f87c follow-up.
This commit is contained in:
@@ -412,7 +412,8 @@ Unit::~Unit()
|
||||
ASSERT(m_removedAuras.empty());
|
||||
ASSERT(m_gameObj.empty());
|
||||
ASSERT(m_dynObj.empty());
|
||||
ASSERT(!m_playerMovingMe);
|
||||
ASSERT(!m_unitMovedByMe || (m_unitMovedByMe == this));
|
||||
ASSERT(!m_playerMovingMe || (m_playerMovingMe == this));
|
||||
}
|
||||
|
||||
void Unit::Update(uint32 p_time)
|
||||
|
||||
Reference in New Issue
Block a user