mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
- fixed several crashes with joining creatures
- support for loading *.tga images - minor fixes
This commit is contained in:
@@ -4825,7 +4825,7 @@ bool CGameHandler::addToSlot(const StackLocation &sl, const CCreature *c, TQuant
|
||||
|
||||
void CGameHandler::tryJoiningArmy(const CArmedInstance *src, const CArmedInstance *dst, bool removeObjWhenFinished, bool allowMerging)
|
||||
{
|
||||
if(!dst->canBeMergedWith(*src, allowMerging))
|
||||
if(!src->canBeMergedWith(*dst, allowMerging))
|
||||
{
|
||||
if (allowMerging) //do that, add all matching creatures.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user