mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Fix inventory replace bug
This commit is contained in:
parent
c2d23ff9cc
commit
1fadf7f21e
3 changed files with 12 additions and 7 deletions
|
@ -246,7 +246,7 @@ public:
|
|||
// count is the maximum number of items to move (0 for everything)
|
||||
// returns number of moved items
|
||||
u32 moveItem(u32 i, InventoryList *dest, u32 dest_i,
|
||||
u32 count = 0, bool swap_if_needed = true);
|
||||
u32 count = 0, bool swap_if_needed = true, bool *did_swap = NULL);
|
||||
|
||||
// like moveItem, but without a fixed destination index
|
||||
// also with optional rollback recording
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue