mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
*fixed bugs with hero dismissing
This commit is contained in:
@ -2200,7 +2200,10 @@ void CHeroList::updateHList()
|
||||
genList();
|
||||
if(selected>=items.size())
|
||||
select(items.size()-1);
|
||||
draw();
|
||||
if(items.size()==0)
|
||||
LOCPLINT->adventureInt->townList.select(0);
|
||||
else
|
||||
select(selected);
|
||||
}
|
||||
void CHeroList::updateMove(const CGHeroInstance* which) //draws move points bar
|
||||
{
|
||||
@ -2246,4 +2249,4 @@ void CHeroList::draw()
|
||||
blitAt(arrdo->ourImages[0].bitmap,arrdop.x,arrdop.y);
|
||||
else
|
||||
blitAt(arrdo->ourImages[2].bitmap,arrdop.x,arrdop.y);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user