fixed offset bug in lua_type() call in ag::object::setPosition()
git-svn-id: svn://anubis/anaglym/trunk@46 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
8e502af057
commit
5eac13339f
2
ag.cc
2
ag.cc
@ -255,7 +255,7 @@ namespace ag
|
|||||||
double position[3];
|
double position[3];
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
int type = lua_type(L, i);
|
int type = lua_type(L, i + 2);
|
||||||
if (type == LUA_TNUMBER || type == LUA_TSTRING)
|
if (type == LUA_TNUMBER || type == LUA_TSTRING)
|
||||||
{
|
{
|
||||||
position[i] = lua_tonumber(L, i + 2);
|
position[i] = lua_tonumber(L, i + 2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user