From 5eac13339fa2b6dfccabd3bc20b0bec5210687cf Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 1 Oct 2009 04:02:36 +0000 Subject: [PATCH] fixed offset bug in lua_type() call in ag::object::setPosition() git-svn-id: svn://anubis/anaglym/trunk@46 99a6e188-d820-4881-8870-2d33a10e2619 --- ag.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ag.cc b/ag.cc index 018ad12..6e7e1fc 100644 --- a/ag.cc +++ b/ag.cc @@ -255,7 +255,7 @@ namespace ag double position[3]; 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) { position[i] = lua_tonumber(L, i + 2);