mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Change i++ to ++i
This commit is contained in:
parent
2480f2d06f
commit
34b7a147dc
41 changed files with 125 additions and 125 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue