Handling for Library being passed to AngelscriptResolver being nullptr, for testing purposes.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
1568c561d0
commit
9e507d5c3f
|
@ -84,8 +84,13 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg)
|
|||
RegisterTypes();
|
||||
RegisterExceptionRoutines(_engine);
|
||||
|
||||
if (library != nullptr){
|
||||
auto& staticLib = library->GetStaticLib();
|
||||
_engine->RegisterGlobalProperty("const StaticLibrary@ StaticLib", (void*)staticLib.get());
|
||||
}
|
||||
else{
|
||||
_engine->RegisterGlobalProperty("const StaticLibrary@ StaticLib", nullptr);
|
||||
}
|
||||
|
||||
_contextPool = new ContextPool(_engine);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue