Fixed issue where using operator->() function directly in Angelscript threw an exception if the pointer was null.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-07-04 18:56:49 +02:00
parent 665c47aa91
commit 45f80444b9
7 changed files with 19 additions and 17 deletions

View File

@@ -89,7 +89,7 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg)
_contextPool = new ContextPool(_engine);
}
SMART_PTR_GETTER_FUNC(PkmnLib::Battling::Pokemon, CreatureLib::Battling::Battle, GetBattle);
BORROWED_PTR_GETTER_FUNC(PkmnLib::Battling::Pokemon, CreatureLib::Battling::Battle, GetBattle);
void AngelScriptResolver::RegisterTypes() {
// Register static library types