mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix use of previously deallocated EmergeManager
This commit is contained in:
parent
6e352e3cbf
commit
9b978db0c2
3 changed files with 46 additions and 8 deletions
|
@ -87,6 +87,8 @@ public:
|
|||
std::vector<Mapgen *> mapgen;
|
||||
std::vector<EmergeThread *> emergethread;
|
||||
|
||||
bool threads_active;
|
||||
|
||||
//settings
|
||||
MapgenParams *params;
|
||||
bool mapgen_debug_info;
|
||||
|
@ -119,7 +121,8 @@ public:
|
|||
Mapgen *createMapgen(std::string mgname, int mgid,
|
||||
MapgenParams *mgparams);
|
||||
MapgenParams *createMapgenParams(std::string mgname);
|
||||
void startAllThreads();
|
||||
void startThreads();
|
||||
void stopThreads();
|
||||
bool enqueueBlockEmerge(u16 peer_id, v3s16 p, bool allow_generate);
|
||||
|
||||
void registerMapgen(std::string name, MapgenFactory *mgfactory);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue