fix ghost items in persistent games

This commit is contained in:
Martin Michelsen
2023-12-27 10:36:32 -08:00
parent 910555f299
commit 8104fd0853
3 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ void Lobby::FloorItemManager::clear() {
}
uint32_t Lobby::FloorItemManager::reassign_all_item_ids(uint32_t next_item_id) {
unordered_map<uint32_t, shared_ptr<FloorItem>> old_items;
::map<uint32_t, shared_ptr<FloorItem>> old_items;
old_items.swap(this->items);
for (auto& queue : this->queue_for_client) {
queue.clear();