Simply re-init the overlay on new level. Closes #14.

This commit is contained in:
Zed A. Shaw 2025-06-28 22:39:46 -04:00
parent 02c42eb042
commit 6a0725e401
2 changed files with 4 additions and 2 deletions

View file

@ -139,7 +139,7 @@ inline json& random_entity_data(GameConfig& config, json& gen_config) {
int rand_entity = Random::uniform<int>(0, keys.size() - 1);
std::string key = keys[rand_entity];
// BUG: this may crash if PLAYER_TILE isn't first
return entity_db[key];
}