mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Fixed crash on joining units that we already have in our army.
This commit is contained in:
@ -3153,7 +3153,7 @@ void CGCreature::joinDecision(const CGHeroInstance *h, int cost, ui32 accept) co
|
||||
if(cost)
|
||||
cb->giveResource(h->tempOwner,6,-cost);
|
||||
|
||||
cb->tryJoiningArmy(this, h, true, false);
|
||||
cb->tryJoiningArmy(this, h, true, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user