Fixed issue when inserting objects in client net list

This commit is contained in:
Yousef Khadadeh 2026-01-02 20:11:33 +03:00
parent 2c9908bcea
commit 92115957b2
6 changed files with 68 additions and 55 deletions

View file

@ -122,3 +122,13 @@ std::optional<NetworkingObjects::NetObjID> WorldUndoManager::get_netid_from_undo
return std::nullopt;
return it->second;
}
std::vector<const char*> WorldUndoManager::get_front_undo_queue_names(unsigned count) {
std::vector<const char*> toRet;
for(auto& u : undoQueue | std::views::reverse) {
toRet.emplace_back(u->get_name());
if(toRet.size() == count)
return toRet;
}
return toRet;
}