Explorar o código

Fixed crash on joining units that we already have in our army.

DjWarmonger %!s(int64=14) %!d(string=hai) anos
pai
achega
5f53531f4b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/CObjectHandler.cpp

+ 1 - 1
lib/CObjectHandler.cpp

@@ -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);
 	}
 }