Had to refactor the GameDB to use a list of levels instead of a vector of levels. If you get a _reference_ to an element of a vector, and then resize the vector, you'll get a crash if the realoc moves the data buffer. Using a list is actually what we want.

This commit is contained in:
Zed A. Shaw 2025-12-16 11:40:29 -05:00
parent bf8ce7e16b
commit 0456c73e4f
6 changed files with 53 additions and 37 deletions

View file

@ -257,7 +257,7 @@ void System::combat(int attack_id) {
battle.plan();
}
battle.dump();
// battle.dump();
while(auto act = battle.next()) {
auto [enemy, enemy_action, cost, host_state] = *act;