1
0
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:
Michał W. Urbańczyk
2008-03-02 13:16:11 +00:00
parent 1b55f6457f
commit 6cb9ed9f8b
3 changed files with 9 additions and 21 deletions

View File

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