mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-07 23:33:15 +02:00
MSVC compile fix #997.
CClickableHex apparently can't be held by value in vector anymore.
This commit is contained in:
@@ -198,7 +198,7 @@ void CBattleHero::clickLeft(tribool down, bool previousState)
|
||||
{
|
||||
for(int it=0; it<GameConstants::BFIELD_SIZE; ++it) //do nothing when any hex is hovered - hero's animation overlaps battlefield
|
||||
{
|
||||
if(myOwner->bfield[it].hovered && myOwner->bfield[it].strictHovered)
|
||||
if(myOwner->bfield[it]->hovered && myOwner->bfield[it]->strictHovered)
|
||||
return;
|
||||
}
|
||||
CCS->curh->changeGraphic(0,0);
|
||||
|
||||
Reference in New Issue
Block a user