Inventory: Fix assertion caused by a no-op stack movement

This commit is contained in:
SmallJoker 2023-08-27 13:08:33 +02:00 committed by sfan5
parent 660151572f
commit 0ba899e239

@ -354,6 +354,9 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame
return; return;
} }
if (list_from.get() == list_to.get() && from_i == to_i)
return; // Same slot
/* /*
Do not handle rollback if both inventories are that of the same player Do not handle rollback if both inventories are that of the same player
*/ */