Module: Initialise 'ModuleDLLManager' and 'dying' correctly.

This commit is contained in:
Peter Powell 2019-02-05 00:00:56 +00:00
parent 8d87fa3837
commit 05485be9f0
2 changed files with 7 additions and 2 deletions

View File

@ -66,7 +66,6 @@ bool ModuleManager::Load(const std::string& modname, bool defer)
{
newmod->ModuleSourceFile = filename;
newmod->ModuleDLLManager = newhandle;
newmod->dying = false;
Modules[filename] = newmod;
std::string version = newhandle->GetVersion();
if (version.empty())

View File

@ -54,11 +54,17 @@ Version::Version(const std::string &desc, int flags, const std::string& linkdata
// These declarations define the behavours of the base class Module (which does nothing at all)
Module::Module() { }
Module::Module()
: ModuleDLLManager(NULL)
, dying(false)
{
}
CullResult Module::cull()
{
return classbase::cull();
}
Module::~Module()
{
}