Fix bad self on cursor:output_at_pos

This commit is contained in:
buffet 2021-07-30 20:49:39 +00:00
parent 540f931d2d
commit 4bc201754a

View file

@ -26,7 +26,7 @@ static int
l_kiwmi_cursor_output_at_pos(lua_State *L) l_kiwmi_cursor_output_at_pos(lua_State *L)
{ {
struct kiwmi_object *obj = struct kiwmi_object *obj =
*(struct kiwmi_object **)luaL_checkudata(L, 1, "kiwmi_server"); *(struct kiwmi_object **)luaL_checkudata(L, 1, "kiwmi_cursor");
struct kiwmi_cursor *cursor = obj->object; struct kiwmi_cursor *cursor = obj->object;
struct kiwmi_server *server = cursor->server; struct kiwmi_server *server = cursor->server;