From c10fee7393dd0abf08a4c381a7df15aa78fb3562 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 19 Jul 2019 21:03:30 +0200 Subject: HDB: More Lua script patches to MAP30.LUA --- engines/hdb/lua-script.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/hdb/lua-script.cpp') diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index cd2bf0be98..048fd012d6 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -58,6 +58,9 @@ struct ScriptPatch { {"MAP10.LUA", "if( getn( beds ) == 0 ) then", "if( #beds == 0 ) then"}, // line 119 {"MAP11.LUA", "mapstring = strsub( LASTMAP, 1, 5 )", "mapstring = string.sub( LASTMAP, 1, 5 )"}, // line 51 {"MAP21.LUA", "mapstring = strsub( LASTMAP, 1, 5 )", "mapstring = string.sub( LASTMAP, 1, 5 )"}, // line 105 + {"MAP30.LUA", "if i1 > getn(tiles)", "if i1 > #tiles"}, // line 211 + {"MAP30.LUA", "if i2 > getn(tiles)", "if i2 > #tiles"}, // line 212 + {"MAP30.LUA", "if i3 > getn(tiles)", "if i3 > #tiles"}, // line 213 {NULL, NULL, NULL} }; -- cgit v1.2.3