From 0ba899e2390a397b2c68e33e96f8ba6c48739013 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 27 Aug 2023 13:08:33 +0200 Subject: [PATCH] Inventory: Fix assertion caused by a no-op stack movement --- src/inventorymanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp index e1bb42c48..458deff26 100644 --- a/src/inventorymanager.cpp +++ b/src/inventorymanager.cpp @@ -354,6 +354,9 @@ void IMoveAction::apply(InventoryManager *mgr, ServerActiveObject *player, IGame 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 */