1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Support for Magic Spring

Optimized Pandora Box
This commit is contained in:
DjWarmonger
2009-09-22 16:12:33 +00:00
parent 7c2b54844f
commit 91b4212c5f
7 changed files with 56 additions and 33 deletions

View File

@@ -1570,7 +1570,7 @@ void CGameHandler::giveResource(int player, int which, int val)
sr.val = gs->players.find(player)->second.resources[which]+val;
sendAndApply(&sr);
}
void CGameHandler::giveCreatures (int objid, const CGHeroInstance * h, CCreatureSet *creatures)
void CGameHandler::giveCreatures (int objid, const CGHeroInstance * h, const CCreatureSet *creatures) const
{
if (creatures->slots.size() <= 0)
return;