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:
parent
bf8ce7e16b
commit
0456c73e4f
6 changed files with 53 additions and 37 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue