Valgrind passes. Fixed a bug in combat.
This commit is contained in:
parent
55af06821c
commit
568171c4a2
6 changed files with 18 additions and 21 deletions
|
|
@ -264,7 +264,9 @@ void System::combat(int attack_id) {
|
|||
|
||||
// battle.dump();
|
||||
|
||||
bool battle_ran = false;
|
||||
while(auto act = battle.next()) {
|
||||
battle_ran = true;
|
||||
auto [enemy, enemy_action, cost, host_state] = *act;
|
||||
|
||||
// player shouldn't hit theirself
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue