diff options
author | paramat <paramat@users.noreply.github.com> | 2018-03-04 18:19:37 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2018-03-09 03:16:25 +0000 |
commit | 1a88c4b7a5d2c35b125f45d0fbdf3f365a6a76b3 (patch) | |
tree | 46b99d7f74be3049ea063f09836ecf37281af924 /src | |
parent | cbb9301bea9d869a7d11f810fb320d93f6d31460 (diff) | |
download | minetest-1a88c4b7a5d2c35b125f45d0fbdf3f365a6a76b3.tar.gz minetest-1a88c4b7a5d2c35b125f45d0fbdf3f365a6a76b3.tar.bz2 minetest-1a88c4b7a5d2c35b125f45d0fbdf3f365a6a76b3.zip |
Getv3intfield: Fix logic of return bool
Diffstat (limited to 'src')
-rw-r--r-- | src/script/common/c_converter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/common/c_converter.h b/src/script/common/c_converter.h index 67b23f131..04fdb353a 100644 --- a/src/script/common/c_converter.h +++ b/src/script/common/c_converter.h @@ -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; |