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

Fixed bug 186.

This commit is contained in:
Frank Zago 2009-10-22 03:28:54 +00:00
parent 598334a71e
commit 218194c36e

View File

@ -1393,7 +1393,7 @@ void CHeroList::updateMove(const CGHeroInstance* which) //draws move points bar
if(heroes[i]->subID == which->subID)
ser = i;
ser -= from;
if(ser<0 || ser > SIZE) return;
if(ser<0 || ser >= SIZE) return;
int pom = std::min((which->movement)/100,(si32)mobile->ourImages.size()-1);
blitAt(mobile->ourImages[pom].bitmap,posmobx,posmoby+ser*32); //move point
}