aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-07-14 00:50:38 +0530
committerEugene Sandulenko2019-09-03 17:17:19 +0200
commit44ae2202aaf7f5f54ddd743d7494690afda3bcc3 (patch)
tree41d892ba0043eb13dc97125bac10a89524dde94e
parentcea99e3fcd8621b01fe089e65c9403e6365aa39a (diff)
downloadscummvm-rg350-44ae2202aaf7f5f54ddd743d7494690afda3bcc3.tar.gz
scummvm-rg350-44ae2202aaf7f5f54ddd743d7494690afda3bcc3.tar.bz2
scummvm-rg350-44ae2202aaf7f5f54ddd743d7494690afda3bcc3.zip
HDB: Fix Lua Index
-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);