mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fixed #815.
This commit is contained in:
@@ -1655,7 +1655,7 @@ void CGameHandler::takeCreatures(int objid, const std::vector<CStackBasicDescrip
|
|||||||
if(i->second->type == sbd.type)
|
if(i->second->type == sbd.type)
|
||||||
{
|
{
|
||||||
TQuantity take = std::min(sbd.count - collected, i->second->count); //collect as much cres as we can
|
TQuantity take = std::min(sbd.count - collected, i->second->count); //collect as much cres as we can
|
||||||
changeStackCount(StackLocation(obj, i->first), take, false);
|
changeStackCount(StackLocation(obj, i->first), -take, false);
|
||||||
collected += take;
|
collected += take;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user