Simply re-init the overlay on new level. Closes #14.
This commit is contained in:
parent
02c42eb042
commit
6a0725e401
2 changed files with 4 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue