mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Server: properly delete ServerMap on interrupted startups
A static mod error (e.g. typo) would abort the initialization but never free ServerMap
This commit is contained in:
parent
9b64834c6a
commit
d287da184c
3 changed files with 9 additions and 1 deletions
|
@ -547,6 +547,10 @@ private:
|
|||
// Environment
|
||||
ServerEnvironment *m_env = nullptr;
|
||||
|
||||
// Reference to the server map until ServerEnvironment is initialized
|
||||
// after that this variable must be a nullptr
|
||||
ServerMap *m_startup_server_map = nullptr;
|
||||
|
||||
// server connection
|
||||
std::shared_ptr<con::Connection> m_con;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue