|
@@ -748,6 +748,9 @@ void CExchangeController::moveStack(
|
|
|
SlotID sourceSlot)
|
|
SlotID sourceSlot)
|
|
|
{
|
|
{
|
|
|
auto creature = source->getCreature(sourceSlot);
|
|
auto creature = source->getCreature(sourceSlot);
|
|
|
|
|
+ if(creature == nullptr)
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
SlotID targetSlot = target->getSlotFor(creature);
|
|
SlotID targetSlot = target->getSlotFor(creature);
|
|
|
|
|
|
|
|
if(targetSlot.validSlot())
|
|
if(targetSlot.validSlot())
|