Skip to content

Commit

Permalink
Inventory: Fix assertion caused by a no-op stack movement
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker authored and sfan5 committed Aug 27, 2023
1 parent 6601515 commit 0ba899e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/inventorymanager.cpp
Expand Up @@ -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
*/
Expand Down

0 comments on commit 0ba899e

Please sign in to comment.