Skip to content

Commit

Permalink
Fix equipped items losing Quantity bug
Browse files Browse the repository at this point in the history
  • Loading branch information
clintbellanger committed Oct 8, 2012
1 parent 59fdaf5 commit 81a3bb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SaveLoad.cpp
Expand Up @@ -226,7 +226,6 @@ void GameStatePlay::loadGame() {
}
else if (infile.key == "equipped_quantity") {
menu->inv->inventory[EQUIPMENT].setQuantities(infile.val);
menu->inv->inventory[EQUIPMENT].fillEquipmentSlots();
}
else if (infile.key == "carried") {
menu->inv->inventory[CARRIED].setItems(infile.val);
Expand Down Expand Up @@ -288,6 +287,8 @@ void GameStatePlay::loadGame() {
infile.close();
} else fprintf(stderr, "Unable to open %s!\n", ss.str().c_str());

menu->inv->inventory[EQUIPMENT].fillEquipmentSlots();

// Load stash
ss.str("");
ss << PATH_USER << "stash.txt";
Expand Down

0 comments on commit 81a3bb1

Please sign in to comment.