Skip to content

Commit

Permalink
Merge pull request Tencent#117 from kimixuchen/UnLua-fs
Browse files Browse the repository at this point in the history
execCallLua增加校验,从蓝图字节码执行过来不用SkipCode EX_CallLua
  • Loading branch information
rowechien authored Mar 8, 2020
2 parents 630447b + c0cd524 commit 9a44a59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Plugins/UnLua/Source/UnLua/Private/LuaFunctionInjection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ DEFINE_FUNCTION(FLuaInvoker::execCallLua)
}
else
{
Stack.SkipCode(1); // skip EX_CallLua
if (Func->GetNativeFunc() == (FNativeFuncPtr)&FLuaInvoker::execCallLua)
{
check(*Stack.Code == EX_CallLua);
Stack.SkipCode(1); // skip EX_CallLua only when called from native func
}
}
}

Expand Down

0 comments on commit 9a44a59

Please sign in to comment.