Fix initial setup of IDPlayerPool

This commit is contained in:
2021-12-14 12:53:31 -05:00
parent 75cc891c56
commit c689422206
2 changed files with 12 additions and 1 deletions

View File

@@ -21,6 +21,13 @@ std::string World::tangible_anim_debug_string(int64_t id) const {
}
std::string World::tangible_id_pool_debug_string(int64_t id) const {
const Tangible *t = tangible_get(id);
if (t == 0) return "no such tangible";
return t->id_player_pool_.debug_string();
}
std::string World::tangible_ids_debug_string() const {
util::IdVector idv;
for (const auto &pair : tangibles_) {