1
0

cWorld Threads: Seperate initialization and thread start.

Prevents nullptr dereferences before Start has been called.
This commit is contained in:
peterbell10
2017-09-22 17:16:47 +01:00
committed by Mattes D
parent 1537ebed6f
commit c54bf40ef9
6 changed files with 17 additions and 32 deletions

View File

@@ -60,13 +60,11 @@ cWorldStorage::~cWorldStorage()
bool cWorldStorage::Start(cWorld * a_World, const AString & a_StorageSchemaName, int a_StorageCompressionFactor)
void cWorldStorage::Initialize(cWorld & a_World, const AString & a_StorageSchemaName, int a_StorageCompressionFactor)
{
m_World = a_World;
m_World = &a_World;
m_StorageSchemaName = a_StorageSchemaName;
InitSchemas(a_StorageCompressionFactor);
return super::Start();
}