Skip to content

Commit

Permalink
Fix issue with wrong argument passed (arg2 versus arg1 on OneArgFunct…
Browse files Browse the repository at this point in the history
…ion) (#4)
  • Loading branch information
dwursteisen authored May 25, 2023
1 parent cbf6a07 commit cae4e0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ abstract class BaseOneArgFunction : LibFunction() {

override suspend fun callSuspend(): LuaValue = callSuspend(LuaValue.NIL)
override suspend fun callSuspend(arg1: LuaValue, arg2: LuaValue): LuaValue = callSuspend(arg1)
override suspend fun callSuspend(arg1: LuaValue, arg2: LuaValue, arg3: LuaValue): LuaValue = callSuspend(arg2)
override suspend fun callSuspend(arg1: LuaValue, arg2: LuaValue, arg3: LuaValue): LuaValue = callSuspend(arg1)
override suspend fun invokeSuspend(args: Varargs): Varargs = callSuspend(args.arg1())
}

0 comments on commit cae4e0c

Please sign in to comment.