From 2b596d525fc8df86b636725304e4b5d6dbeb37f8 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 2 Apr 2010 14:04:40 +0200 Subject: Oops! --- otfl-font-nms.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 5a7e460..ebd9b28 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -264,8 +264,8 @@ local function load_font(filename, fontnames, status, newfontnames, newstatus, t newstatus[filename].timestamp = timestamp newstatus[filename].index = {} if db_timestamp == timestamp then - for i in ipairs(status[filename].index) do - mappings[#mappings+1] = oldmappings[i] + for _,v in ipairs(status[filename].index) do + mappings[#mappings+1] = oldmappings[v] table.insert(newstatus[filename].index, #mappings) end if trace_loading then -- cgit v1.2.3