builtin/worldgen: Fix some kind of issue that killed the generator thread
This commit is contained in:
parent
4f9939c547
commit
c645fea5cd
@ -251,9 +251,11 @@ void GenerateThread::run(interface::Thread *thread)
|
|||||||
// Generate one section for each instance
|
// Generate one section for each instance
|
||||||
for(auto &pair: m_module->m_instances){
|
for(auto &pair: m_module->m_instances){
|
||||||
up_<CInstance> &instance = pair.second;
|
up_<CInstance> &instance = pair.second;
|
||||||
if(!instance->m_enabled && !instance->m_queued_sections.empty()){
|
if(!instance->m_enabled){
|
||||||
// Has to be checked later
|
if(!instance->m_queued_sections.empty()){
|
||||||
m_module->m_queued_sections_sem.post();
|
// Has to be checked later
|
||||||
|
m_module->m_queued_sections_sem.post();
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
instance->generate_next_section();
|
instance->generate_next_section();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user