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:
parent
f0e04ad850
commit
aa43938117
@ -1683,7 +1683,7 @@ const CGHeroInstance * CGameState::battleGetOwner(int stackID)
|
||||
UpgradeInfo CGameState::getUpgradeInfo(const CArmedInstance *obj, int stackPos)
|
||||
{
|
||||
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))
|
||||
{
|
||||
const CGTownInstance * t;
|
||||
|
Loading…
x
Reference in New Issue
Block a user