Skip to content
Permalink
Browse files

Merge pull request #1219 from MeridianOXC/fixmedikit

Don't replenish empty medikits after reload
  • Loading branch information...
SupSuper committed Feb 16, 2019
2 parents 379410e + 720eaa4 commit 374e236ed87361ef8bf26bc27d770b4758e68281
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Savegame/BattleItem.cpp
@@ -118,12 +118,12 @@ YAML::Node BattleItem::save() const
if (_ammoItem)
node["ammoItem"] = _ammoItem->getId();

if (_painKiller)
if (_rules && _rules->getBattleType() == BT_MEDIKIT)
{
node["painKiller"] = _painKiller;
if (_heal)
node["heal"] = _heal;
if (_stimulant)
node["stimulant"] = _stimulant;
}
if (_fuseTimer != -1)
node["fuseTimer"] = _fuseTimer;
if (_droppedOnAlienTurn)

0 comments on commit 374e236

Please sign in to comment.
You can’t perform that action at this time.