fix(Core): Restored code about shared visions removed in d504a62. (#11493)

Fixes #11368
This commit is contained in:
UltraNix
2022-04-25 14:26:32 +02:00
committed by GitHub
parent 3a525b8345
commit 898eabe6dd
2 changed files with 13 additions and 2 deletions

View File

@@ -452,10 +452,8 @@ Player::~Player()
if (!m_isInSharedVisionOf.empty())
{
LOG_INFO("misc", "Player::~Player (A1)");
do
{
LOG_INFO("misc", "Player::~Player (A2)");
Unit* u = *(m_isInSharedVisionOf.begin());
u->RemovePlayerFromVision(this);
} while (!m_isInSharedVisionOf.empty());