From 29266a9a0f650babab24793f7dc0118f10bcb5ce Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Sat, 2 Jan 2016 10:38:19 -0500 Subject: [PATCH] Use correct variable in ustring.lua Change-Id: Ic576b8c31c487c106593050538f9f2cc5b722b62 --- engines/LuaCommon/lualib/ustring/ustring.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/LuaCommon/lualib/ustring/ustring.lua b/engines/LuaCommon/lualib/ustring/ustring.lua index c390feb2..afed7ab3 100644 --- a/engines/LuaCommon/lualib/ustring/ustring.lua +++ b/engines/LuaCommon/lualib/ustring/ustring.lua @@ -730,7 +730,7 @@ local function find( s, cps, rawpat, pattern, init, noAnchor ) local ep = match( sp, pp ) if ep then for i = 1, ncapt do - captures[i] = getcapt( i, 'Unclosed capture beginning at pattern character ' .. captparen[pp], 2 ) + captures[i] = getcapt( i, 'Unclosed capture beginning at pattern character ' .. captparen[i], 2 ) end return sp, ep - 1, unpack( captures ) end