Valgrind passes. Fixed a bug in combat.

This commit is contained in:
Zed A. Shaw 2026-04-04 16:54:28 -04:00
parent 55af06821c
commit 568171c4a2
6 changed files with 18 additions and 21 deletions

View file

@ -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