1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Fixed bug 7 & 153.

This commit is contained in:
Frank Zago 2009-10-24 03:28:14 +00:00
parent f0e04ad850
commit aa43938117

View File

@ -1683,7 +1683,7 @@ const CGHeroInstance * CGameState::battleGetOwner(int stackID)
UpgradeInfo CGameState::getUpgradeInfo(const CArmedInstance *obj, int stackPos) UpgradeInfo CGameState::getUpgradeInfo(const CArmedInstance *obj, int stackPos)
{ {
UpgradeInfo ret; UpgradeInfo ret;
const CCreature *base = &VLC->creh->creatures[obj->army.slots.find(stackPos)->first]; const CCreature *base = &VLC->creh->creatures[obj->army.slots.find(stackPos)->second.first];
if((obj->ID == TOWNI_TYPE) || ((obj->ID == HEROI_TYPE) && static_cast<const CGHeroInstance*>(obj)->visitedTown)) if((obj->ID == TOWNI_TYPE) || ((obj->ID == HEROI_TYPE) && static_cast<const CGHeroInstance*>(obj)->visitedTown))
{ {
const CGTownInstance * t; const CGTownInstance * t;