hands_obj follow-up

This commit is contained in:
nhmall
2023-11-13 14:20:54 -05:00
parent 5b2ec5d6ee
commit 6e91482be0

View File

@@ -349,9 +349,11 @@ l_obj_new_readobjnam(lua_State *L)
if (argc == 1) {
char buf[BUFSZ];
struct obj *otmp;
Sprintf(buf, "%s", luaL_checkstring(L, 1));
lua_pop(L, 1);
otmp = readobjnam(buf, NULL);
if ((otmp = readobjnam(buf, NULL)) == &hands_obj)
otmp = NULL;
(void) l_obj_push(L, otmp);
return 1;
} else