1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-21 08:55:21 +01:00

Guard new object from being added at shutdown (#16610)

This commit is contained in:
sfan5
2025-10-26 10:28:41 +01:00
committed by GitHub
parent f1c0f292fa
commit 4f8a847085
2 changed files with 19 additions and 4 deletions

View File

@@ -357,9 +357,9 @@ private:
// The map
std::unique_ptr<ServerMap> m_map;
// Lua state
ServerScripting* m_script;
ServerScripting *m_script = nullptr;
// Server definition
Server *m_server;
Server *m_server = nullptr;
// Active Object Manager
server::ActiveObjectMgr m_ao_manager;
// on_mapblocks_changed map event receiver
@@ -378,6 +378,8 @@ private:
IntervalLimiter m_active_blocks_nodemetadata_interval;
// Whether the variables below have been read from file yet
bool m_meta_loaded = false;
// Are we shutting down?
bool m_shutting_down = false;
// Time from the beginning of the game in seconds.
// Incremented in step().
u32 m_game_time = 0;