1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Stacks #2 -> towards new system of stack operations.

This commit is contained in:
Michał W. Urbańczyk
2010-11-27 01:46:19 +00:00
parent 32ce20af15
commit 7c3f3d20c3
17 changed files with 406 additions and 126 deletions

View File

@ -1019,6 +1019,12 @@ std::vector<si32> CStack::activeSpells() const
return ret;
}
CStack::~CStack()
{
if(vstd::contains(state, SUMMONED))
delNull(base);
}
CGHeroInstance * CGameState::HeroesPool::pickHeroFor(bool native, int player, const CTown *town, std::map<ui32,CGHeroInstance *> &available, const CHeroClass *bannedClass /*= NULL*/) const
{
CGHeroInstance *ret = NULL;