summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-08-19 02:28:37 +0200
committerest31 <MTest31@outlook.com>2015-08-19 03:42:00 +0200
commit1fadf7f21eb5fd7a09037d92f87cd0154e9306c1 (patch)
tree06a2557c71b7cf915660ac51a5c9142899057015 /src/inventory.h
parentc2d23ff9ccf04dd0e4c2ba8a8026857c034bc947 (diff)
downloadminetest-1fadf7f21eb5fd7a09037d92f87cd0154e9306c1.tar.gz
minetest-1fadf7f21eb5fd7a09037d92f87cd0154e9306c1.tar.bz2
minetest-1fadf7f21eb5fd7a09037d92f87cd0154e9306c1.zip
Fix inventory replace bug
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inventory.h b/src/inventory.h
index e3c994fc3..a690eb5ae 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -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