mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
fixed warning
This commit is contained in:
+8
-8
@@ -2654,35 +2654,35 @@ static void DrawPolygon() {
|
||||
lua_pushobject(tableObj1);
|
||||
lua_pushnumber(1);
|
||||
pointObj = lua_gettable();
|
||||
x1 = lua_getnumber(pointObj);
|
||||
x1 = (int)lua_getnumber(pointObj);
|
||||
lua_pushobject(tableObj1);
|
||||
lua_pushnumber(2);
|
||||
pointObj = lua_gettable();
|
||||
y1 = lua_getnumber(pointObj);
|
||||
y1 = (int)lua_getnumber(pointObj);
|
||||
lua_pushobject(tableObj1);
|
||||
lua_pushnumber(3);
|
||||
pointObj = lua_gettable();
|
||||
x2 = lua_getnumber(pointObj);
|
||||
x2 = (int)lua_getnumber(pointObj);
|
||||
lua_pushobject(tableObj1);
|
||||
lua_pushnumber(4);
|
||||
pointObj = lua_gettable();
|
||||
y2 = lua_getnumber(pointObj);
|
||||
y2 = (int)lua_getnumber(pointObj);
|
||||
lua_pushobject(tableObj1);
|
||||
lua_pushnumber(5);
|
||||
pointObj = lua_gettable();
|
||||
x3 = lua_getnumber(pointObj);
|
||||
x3 = (int)lua_getnumber(pointObj);
|
||||
lua_pushobject(tableObj1);
|
||||
lua_pushnumber(6);
|
||||
pointObj = lua_gettable();
|
||||
y3 = lua_getnumber(pointObj);
|
||||
y3 = (int)lua_getnumber(pointObj);
|
||||
lua_pushobject(tableObj1);
|
||||
lua_pushnumber(7);
|
||||
pointObj = lua_gettable();
|
||||
x4 = lua_getnumber(pointObj);
|
||||
x4 = (int)lua_getnumber(pointObj);
|
||||
lua_pushobject(tableObj1);
|
||||
lua_pushnumber(8);
|
||||
pointObj = lua_gettable();
|
||||
y4 = lua_getnumber(pointObj);
|
||||
y4 = (int)lua_getnumber(pointObj);
|
||||
} else {
|
||||
lua_pushnil();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user