diff options
-rw-r--r-- | engines/hdb/lua-script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index cf0ef69f8a..1776ab7d72 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -1388,7 +1388,7 @@ static int dofile(lua_State *L) { Common::InSaveFile *in = g_hdb->_currentInSaveFile; - int length = in->size(); + int length = in->size() - in->pos(); char *chunk = new char[length + 1]; in->read((void *)chunk, length); |