From: Daniel Karbach Date: Mon, 20 Aug 2012 20:52:01 +0000 (+0200) Subject: put hero into a variable when applying damage for debugging purposes X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=8639675fbf1d232ab8188dd283149ab650e10336;p=l2e.git put hero into a variable when applying damage for debugging purposes --- diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index 5547bbf..bd039ff 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -386,8 +386,9 @@ void BattleState::ApplyDamage() { } } else { for (int i(0); i < NumHeroes(); ++i) { + Hero &hero(HeroAt(i)); if (ts.IsBad(i)) { - HeroAt(i).SubtractHealth(ts.GetAmount(i)); + hero.SubtractHealth(ts.GetAmount(i)); } } }