mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	#2646 add a null check if creature is empty
This commit is contained in:
		| @@ -748,6 +748,9 @@ void CExchangeController::moveStack( | ||||
| 	SlotID sourceSlot) | ||||
| { | ||||
| 	auto creature = source->getCreature(sourceSlot); | ||||
| 	if(creature == nullptr) | ||||
| 		return; | ||||
|  | ||||
| 	SlotID targetSlot = target->getSlotFor(creature); | ||||
|  | ||||
| 	if(targetSlot.validSlot()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user