summaryrefslogtreecommitdiff
path: root/src/inventorymanager.cpp
diff options
context:
space:
mode:
authorDavid Jones <david@gogledd.cymru>2015-08-25 21:23:05 +0100
committerShadowNinja <shadowninja@minetest.net>2015-08-25 18:33:52 -0400
commit34b7a147dcf9831f3b4d81599c473ba01ff5da00 (patch)
treee7a95bf333d782ebde897b25070c5d997174e2f5 /src/inventorymanager.cpp
parent2480f2d06fe50295184a60d6659378f9a5d57065 (diff)
downloadminetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.gz
minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.tar.bz2
minetest-34b7a147dcf9831f3b4d81599c473ba01ff5da00.zip
Change i++ to ++i
Diffstat (limited to 'src/inventorymanager.cpp')
-rw-r--r--src/inventorymanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inventorymanager.cpp b/src/inventorymanager.cpp
index 476768b8c..d4e8d2f25 100644
--- a/src/inventorymanager.cpp
+++ b/src/inventorymanager.cpp
@@ -818,9 +818,9 @@ void ICraftAction::apply(InventoryManager *mgr,
// Add the new replacements to the list
IItemDefManager *itemdef = gamedef->getItemDefManager();
for (std::vector<ItemStack>::iterator it = temp.begin();
- it != temp.end(); it++) {
+ it != temp.end(); ++it) {
for (std::vector<ItemStack>::iterator jt = output_replacements.begin();
- jt != output_replacements.end(); jt++) {
+ jt != output_replacements.end(); ++jt) {
if (it->name == jt->name) {
*it = jt->addItem(*it, itemdef);
if (it->empty())
@@ -850,7 +850,7 @@ void ICraftAction::apply(InventoryManager *mgr,
// Put the replacements in the inventory or drop them on the floor, if
// the invenotry is full
for (std::vector<ItemStack>::iterator it = output_replacements.begin();
- it != output_replacements.end(); it++) {
+ it != output_replacements.end(); ++it) {
if (list_main)
*it = list_main->addItem(*it);
if (it->empty())