Permalink
Browse files

fix item loading

  • Loading branch information...
Warboy1982 committed Oct 19, 2018
1 parent e4084fa commit 44f732b601640ee2bef7dbeb8dc7cf693f1e5b58
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Savegame/SavedBattleGame.cpp
@@ -308,7 +308,7 @@ void SavedBattleGame::load(const YAML::Node &node, Mod *mod, SavedGame* savedGam
{
if (mod->getItem((*i)["type"].as<std::string>()))
{
int ammo = (*i)["ammoItem"].as<int>();
int ammo = (*i)["ammoItem"].as<int>(-1);
if (ammo != -1)
{
for (std::vector<BattleItem*>::iterator ammoi = _items.begin(); ammoi != _items.end(); ++ammoi)

0 comments on commit 44f732b

Please sign in to comment.