Unit/AI: Making Nayd happy.

(cherry picked from commit 59d02322a78b9f58c51930e085ad6cad9dd95eb0)
This commit is contained in:
treeston
2016-04-08 20:39:53 +02:00
committed by Shauren
parent 3f6b215fca
commit caa1b82b88
+1 -1
View File
@@ -1070,7 +1070,7 @@ void Player::Update(uint32 p_time)
{
UpdateCharmAI();
NeedChangeAI = false;
IsAIEnabled = !!GetAI();
IsAIEnabled = (GetAI() != nullptr);
}
// Update items that have just a limited lifetime