Update for newer base libraries
This commit is contained in:
parent
fbbfbfd3b3
commit
7342cf8a56
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
class MiscMockFunctions {
|
class MiscMockFunctions {
|
||||||
static CScriptHandle CreateMoveScript(const ArbUt::StringView& name) {
|
static CScriptHandle CreateMoveScript(const ArbUt::StringView& name) {
|
||||||
auto script = Globals::Library.GetValue()->GetScriptResolver()->LoadScript(ScriptCategory::Attack, name);
|
auto script = Globals::Library.GetValue()->GetScriptResolver()->LoadScript(nullptr, ScriptCategory::Attack, name);
|
||||||
if (script != nullptr) {
|
if (script != nullptr) {
|
||||||
auto* ctx = asGetActiveContext();
|
auto* ctx = asGetActiveContext();
|
||||||
TestEnvironment* env = static_cast<TestEnvironment*>(ctx->GetUserData(684));
|
TestEnvironment* env = static_cast<TestEnvironment*>(ctx->GetUserData(684));
|
||||||
|
|
Loading…
Reference in New Issue