chore(Core/Player): add error log when previously ASSERT (#6802)

This commit is contained in:
Francesco Borzì
2021-07-09 17:55:09 +02:00
committed by GitHub
parent aaa1387ad6
commit 65c9d3669f

View File

@@ -22996,6 +22996,7 @@ void Player::UpdateVisibilityForPlayer(bool mapChange)
// After added to map seer must be a player - there is no possibility to still have different seer (all charm auras must be already removed)
if (mapChange && m_seer != this)
{
LOG_ERROR("entities.player", "Something wrong in Player::UpdateVisibilityForPlayer - after added to map seer must be a player - there is no possibility to still have different seer (all charm auras must be already removed)");
m_seer = this;
}