Fixed gcc build
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1382 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
929d299965
commit
1fbc77f9ed
@ -1111,6 +1111,7 @@ static int Lua_ItemGrid_GetSlotCoords(lua_State * L)
|
||||
goto tolua_lerror;
|
||||
}
|
||||
|
||||
{
|
||||
const cItemGrid * self = (const cItemGrid *)tolua_tousertype(L, 1, 0);
|
||||
int SlotNum = (int)tolua_tonumber(L, 2, 0);
|
||||
if (self == NULL)
|
||||
@ -1123,6 +1124,7 @@ static int Lua_ItemGrid_GetSlotCoords(lua_State * L)
|
||||
tolua_pushnumber(L, (lua_Number)X);
|
||||
tolua_pushnumber(L, (lua_Number)Y);
|
||||
return 2;
|
||||
}
|
||||
|
||||
tolua_lerror:
|
||||
tolua_error(L, "#ferror in function 'FindKey'.", &tolua_err);
|
||||
|
Loading…
Reference in New Issue
Block a user