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

Merge pull request #261 from dydzio0614/patch-1

Regression fix - enemy hero info crash
This commit is contained in:
Alexander Shishkin 2016-12-03 12:02:43 +03:00 committed by GitHub
commit fdec57b1c7

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;