mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fixed #608. I just ignored odd postInit interface, hope that's fine.
This commit is contained in:
parent
d681afe1c1
commit
0c4bec0a52
@ -3561,8 +3561,6 @@ void CGTeleport::postInit() //matches subterranean gates into pairs
|
||||
gates.push_back(std::pair<int, int>(cur->id, -1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
objs.erase(103);
|
||||
}
|
||||
|
||||
|
@ -154,8 +154,8 @@ public:
|
||||
|
||||
void postInit()
|
||||
{
|
||||
// for (size_t i = 0; i < apps.size(); i++)
|
||||
// apps[i]->postInit();
|
||||
//for (size_t i = 0; i < apps.size(); i++)
|
||||
//apps[i]->postInit();
|
||||
}
|
||||
} *objCaller = NULL;
|
||||
|
||||
@ -1822,7 +1822,7 @@ void CGameState::init( StartInfo * si, ui32 checksum, int Seed )
|
||||
if(map->objects[i]->ID == 62) //prison also needs to initialize hero
|
||||
static_cast<CGHeroInstance*>(map->objects[i])->initHero();
|
||||
}
|
||||
objCaller->postInit();
|
||||
CGTeleport::postInit(); //pairing subterranean gates
|
||||
}
|
||||
|
||||
bool CGameState::battleCanFlee(int player)
|
||||
|
Loading…
Reference in New Issue
Block a user