1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Regression fix - enemy hero info crash

This commit is contained in:
Dydzio 2016-12-03 09:52:19 +01:00 committed by GitHub
parent eaf14f6429
commit a77863145a

View File

@ -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;