summaryrefslogtreecommitdiff
path: root/src/script/common/c_converter.cpp
diff options
context:
space:
mode:
authorKevin Ott <supercodingmonkey@gmail.com>2015-05-07 02:50:22 -0400
committerNovatux <nathanael.courant@laposte.net>2015-05-07 09:57:34 +0200
commite17c6ba2cdab2ec753646ba9984716c5a88ad0a0 (patch)
treef4604a8f9e00af2267f889b1154d5d7da87e213d /src/script/common/c_converter.cpp
parentb246812455737b2d0337dec905ba0256adefd105 (diff)
downloadminetest-e17c6ba2cdab2ec753646ba9984716c5a88ad0a0.tar.gz
minetest-e17c6ba2cdab2ec753646ba9984716c5a88ad0a0.tar.bz2
minetest-e17c6ba2cdab2ec753646ba9984716c5a88ad0a0.zip
Remove duplicate lua_getfield() in c_converter.cpp
Fixes #2678
Diffstat (limited to 'src/script/common/c_converter.cpp')
-rw-r--r--src/script/common/c_converter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/script/common/c_converter.cpp b/src/script/common/c_converter.cpp
index 027df4dbf..6bf48db0d 100644
--- a/src/script/common/c_converter.cpp
+++ b/src/script/common/c_converter.cpp
@@ -105,7 +105,6 @@ v2f read_v2f(lua_State *L, int index)
v2f p;
CHECK_POS_TAB(index);
lua_getfield(L, index, "x");
- lua_getfield(L, index, "x");
p.X = lua_tonumber(L, -1);
lua_pop(L, 1);
lua_getfield(L, index, "y");