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:
parent
eaf14f6429
commit
a77863145a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user