Skip to content

Commit

Permalink
save ownership flag on items
Browse files Browse the repository at this point in the history
i don't even.
  • Loading branch information
Warboy1982 committed Jan 18, 2018
1 parent 0eb8d9c commit 8a82c97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Savegame/BattleItem.cpp
Expand Up @@ -72,6 +72,7 @@ void BattleItem::load(const YAML::Node &node)
_stimulant = node["stimulant"].as<int>(_stimulant);
_fuseTimer = node["fuseTimer"].as<int>(_fuseTimer);
_droppedOnAlienTurn = node["droppedOnAlienTurn"].as<bool>(_droppedOnAlienTurn);
_XCOMProperty = node["XCOMProperty"].as<bool>(_XCOMProperty);
}

/**
Expand Down Expand Up @@ -139,7 +140,10 @@ YAML::Node BattleItem::save() const
node["fuseTimer"] = _fuseTimer;
if (_droppedOnAlienTurn)
node["droppedOnAlienTurn"] = _droppedOnAlienTurn;

if (_XCOMProperty)
{
node["XCOMProperty"] = _XCOMProperty;
}
return node;
}

Expand Down

0 comments on commit 8a82c97

Please sign in to comment.