From 1bcb4fdd2a9f4e2d35b90f04892e9c5d49d40314 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sun, 25 Oct 2015 05:23:44 +0300 Subject: [PATCH] afaef --- lib/ECSAPI.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ECSAPI.lua b/lib/ECSAPI.lua index a759246f..eb8d4b08 100644 --- a/lib/ECSAPI.lua +++ b/lib/ECSAPI.lua @@ -799,7 +799,7 @@ function ECSAPI.drawTopMenu(x, y, width, color, selectedObject, ...) if gpu.getForeground() ~= objects[i][2] then gpu.setForeground(objects[i][2]) end gpu.set(xPos, y, objects[i][1]) end - table.insert(objectsToReturn, {xPos, yPos, xPos + unicode.len(objects[i][1]) - 1, yPos}) + objectsToReturn[objects[i][1]] = { xPos, yPos, xPos + unicode.len(objects[i][1]) - 1, yPos } xPos = xPos + unicode.len(objects[i][1]) + spaceBetween end return objectsToReturn