From 6dce241a2a68bb12be4862743ee672b4922d5a61 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Tue, 6 Nov 2018 12:31:23 -0600 Subject: [PATCH] Bug fix Error when checking index pool. --- colddb.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/colddb.lua b/colddb.lua index d220e05..95001af 100644 --- a/colddb.lua +++ b/colddb.lua @@ -626,8 +626,7 @@ function colddb.remove(db,name,tag_name) end if db.indexes and colddb.file_Exists(db,"æIndex_table",tag_name) then local cs2 = string.format("%s%s",t,"æIndex_table") - local om = db.indexes_pool[cs2] - if not om and not om.file then + if not (db.indexes_pool[cs2] and db.indexes_pool[cs2].file) then colddb.open_index_table(db,tag_name) end colddb.delete_lines(db,name,tag_name)