1
0
镜像自地址 https://github.com/luanti-org/luanti.git 已同步 2026-01-09 18:55:36 +01:00

Getv3intfield: Fix logic of return bool

这个提交包含在:
paramat
2018-03-04 18:19:37 +00:00
提交者 paramat
父节点 cbb9301bea
当前提交 1a88c4b7a5

查看文件

@@ -66,9 +66,9 @@ bool getv3intfield(lua_State *L, int index,
lua_getfield(L, index, fieldname);
bool got = false;
if (lua_istable(L, -1)) {
got = getintfield(L, index, "x", result.X) ||
getintfield(L, index, "y", result.Y) ||
getintfield(L, index, "z", result.Z);
got |= getintfield(L, -1, "x", result.X);
got |= getintfield(L, -1, "y", result.Y);
got |= getintfield(L, -1, "z", result.Z);
}
lua_pop(L, 1);
return got;