1
0
Fork 0
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:
kwolekr 2014-01-26 01:12:18 -05:00
parent 6e352e3cbf
commit 9b978db0c2
3 changed files with 46 additions and 8 deletions

View file

@ -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);