Browse Source

Regression fix - enemy hero info crash

Dydzio 9 years ago
parent
commit
a77863145a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/CBattleCallback.cpp

+ 1 - 1
lib/CBattleCallback.cpp

@@ -429,7 +429,7 @@ bool CBattleInfoEssentials::playerHasAccessToHeroInfo(PlayerColor player, const
 {
 	RETURN_IF_NOT_BATTLE(false);
 	const si8 playerSide = playerToSide(player);
-	if (playerSide > 0)
+	if (playerSide >= 0)
 	{
 		if (getBattle()->sides[!playerSide].hero == h)
 			return true;