Remove duplicate lua_getfield() in c_converter.cpp
authorKevin Ott <supercodingmonkey@gmail.com>
Thu, 7 May 2015 06:50:22 +0000 (02:50 -0400)
committerNovatux <nathanael.courant@laposte.net>
Thu, 7 May 2015 07:57:34 +0000 (09:57 +0200)
Fixes #2678

src/script/common/c_converter.cpp

index 027df4dbfd2d159697272b1394dba06c5d81f3df..6bf48db0d2b9e62d3a3a1f83fffee1da2188b8ed 100644 (file)
@@ -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");