Permalink
Browse files

save ownership flag on items

i don't even.
  • Loading branch information...
Warboy1982 committed Jan 18, 2018
1 parent 0eb8d9c commit 8a82c97025f2289111bceff18cae055f76896aac
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/Savegame/BattleItem.cpp
@@ -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);
}
/**
@@ -139,7 +140,10 @@ YAML::Node BattleItem::save() const
node["fuseTimer"] = _fuseTimer;
if (_droppedOnAlienTurn)
node["droppedOnAlienTurn"] = _droppedOnAlienTurn;
if (_XCOMProperty)
{
node["XCOMProperty"] = _XCOMProperty;
}
return node;
}

0 comments on commit 8a82c97

Please sign in to comment.