diff options
Diffstat (limited to 'bruiser/bruiser.cpp')
-rw-r--r-- | bruiser/bruiser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bruiser/bruiser.cpp b/bruiser/bruiser.cpp index ae7359a..8b00b5e 100644 --- a/bruiser/bruiser.cpp +++ b/bruiser/bruiser.cpp @@ -1602,10 +1602,10 @@ class LuaWrapper if (numargs != 2) {PRINT_WITH_COLOR_LB(RED, "expected exactly two args. did not get that.");return 0;} uint64_t size = lua_tointeger(__ls, 1); std::vector<uint8_t> code_v = getLuaTableInt<uint8_t>(__ls, 2, 2); - JMP_S_T* head = makejmptable(size, code_v.data(), Verbose); - JMP_S_T* dummy = push_jmpt(__ls); - dummy = head; - dumpjmptable(dummy); + auto head = makejmptable(size, code_v.data(), Verbose, __ls); + jmpt_push_args(__ls, head); + new_jmpt_2(__ls); + dumpjmptable(head); return 1; } |