1
0
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:
Michał W. Urbańczyk
2012-06-09 16:45:45 +00:00
parent 5dff7d64f6
commit f378e5be31
4 changed files with 31 additions and 27 deletions

View File

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