fix crashes in some non-server actions

This commit is contained in:
Martin Michelsen
2024-01-01 00:05:19 -08:00
parent 09b7885013
commit f1e00ccf0e
6 changed files with 48 additions and 25 deletions
+5 -2
View File
@@ -237,8 +237,11 @@ struct ServerState : public std::enable_shared_from_this<ServerState> {
ServerState(ServerState&&) = delete;
ServerState& operator=(const ServerState&) = delete;
ServerState& operator=(ServerState&&) = delete;
void load_objects(const std::string& what);
void load_objects(const std::vector<std::string>& what);
void load_objects_and_downstream_dependents(const std::string& what);
void load_objects_and_downstream_dependents(const std::vector<std::string>& what);
void load_objects_and_upstream_dependents(const std::string& what);
void load_objects_and_upstream_dependents(const std::vector<std::string>& what);
void add_client_to_available_lobby(std::shared_ptr<Client> c);
void remove_client_from_lobby(std::shared_ptr<Client> c);