summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-06-25 15:50:31 +0200
committerest31 <MTest31@outlook.com>2015-06-25 15:50:31 +0200
commit3376d2e114767eef06b87645edefcd2d42696919 (patch)
tree3cd6a4849cc2506cb3044244ad7e41005de96490 /src/inventory.cpp
parent3d43df99f1b706c836a43329d224d4b5b9ba5191 (diff)
downloadminetest-3376d2e114767eef06b87645edefcd2d42696919.tar.gz
minetest-3376d2e114767eef06b87645edefcd2d42696919.tar.bz2
minetest-3376d2e114767eef06b87645edefcd2d42696919.zip
Remove compile warning
Thanks @TeTpaAka for pointing this out.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index ff2c15b65..6c7c8cdd1 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -795,7 +795,6 @@ void InventoryList::moveItemSomewhere(u32 i, InventoryList *dest, u32 count)
return;
// Try to add the item to destination list
- u32 oldcount = item1.count;
u32 dest_size = dest->getSize();
// First try all the non-empty slots
for (u32 dest_i = 0; dest_i < dest_size; dest_i++) {