fix prevous comit due miscpelled the value copied..

* fix commit 3d5b43798630a3599e1a7d0654d44a798c0bc3a3 change `pos` to `p`
This commit is contained in:
mckaygerhard 2022-07-20 21:57:17 +02:00
parent 3d5b437986
commit 8afa292ed8

View File

@ -152,12 +152,12 @@ v2f check_v2f(lua_State *L, int index)
lua_getfield(L, index, "x");
CHECK_POS_COORD("x");
p.X = lua_tonumber(L, -1);
CHECK_FLOAT_RANGE(pos.X, "x")
CHECK_FLOAT_RANGE(p.X, "x")
lua_pop(L, 1);
lua_getfield(L, index, "y");
CHECK_POS_COORD("y");
p.Y = lua_tonumber(L, -1);
CHECK_FLOAT_RANGE(pos.Y, "y")
CHECK_FLOAT_RANGE(p.Y, "y")
lua_pop(L, 1);
return p;
}