aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/lua-script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index c703c3964a..3e55ed54d5 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -461,7 +461,7 @@ static int cineDrawPic(lua_State *L) {
const char *id = lua_tostring(L, 1);
const char *pic = lua_tostring(L, 2);
double x = lua_tonumber(L, 3);
- double y = lua_tonumber(L, 3);
+ double y = lua_tonumber(L, 4);
g_hdb->_lua->checkParameters("cineDrawPic", 4);
@@ -478,7 +478,7 @@ static int cineDrawMaskedPic(lua_State *L) {
const char *id = lua_tostring(L, 1);
const char *pic = lua_tostring(L, 2);
double x = lua_tonumber(L, 3);
- double y = lua_tonumber(L, 3);
+ double y = lua_tonumber(L, 4);
g_hdb->_lua->checkParameters("cineDrawMaskedPic", 4);