mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Add extra clientside sanity check (should be there from thestart)
This commit is contained in:
		| @@ -79,6 +79,10 @@ void CExchangeController::moveArmy(bool leftToRight, std::optional<SlotID> heldS | ||||
| 			}); | ||||
| 		heldSlot = weakestSlot->first; | ||||
| 	} | ||||
| 	 | ||||
| 	if (source->getCreature(heldSlot.value()) == nullptr) | ||||
| 		return; | ||||
|  | ||||
| 	LOCPLINT->cb->bulkMoveArmy(source->id, target->id, heldSlot.value()); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user