New release
Leandro Silva [11-05-18 - 23:55]
diff --git a/LeoAltholic.txt b/LeoAltholic.txt
index 67ab4f6..0ad9e4f 100644
--- a/LeoAltholic.txt
+++ b/LeoAltholic.txt
@@ -1,7 +1,7 @@
## Title: Leo's Altholic
## APIVersion: 100024 100025
-## Version: 1.6.5
-## AddOnVersion: 165
+## Version: 1.6.6
+## AddOnVersion: 166
## Author: |c39B027@LeandroSilva|r
## SavedVariables: LeoAltholicSavedVariables LeoAltholicCharVariables
## OptionalDependsOn: LibStub LibFeedback LibAddonMenu-2.0
diff --git a/LeoAltholicInit.lua b/LeoAltholicInit.lua
index 80e686b..b94e3e1 100644
--- a/LeoAltholicInit.lua
+++ b/LeoAltholicInit.lua
@@ -6,7 +6,7 @@ LeoAltholicToolbarUI = LeoAltholicToolbarUI or {}
LeoAltholic.name = "LeoAltholic"
LeoAltholic.displayName = "Leo's Altholic"
-LeoAltholic.version = "1.6.5"
+LeoAltholic.version = "1.6.6"
LeoAltholic.chatPrefix = "|c39B027" .. LeoAltholic.name .. "|r: "
LeoAltholic.TAB_BIO = "Bio"
diff --git a/ui/research.lua b/ui/research.lua
index 5279ee5..91c1ee1 100644
--- a/ui/research.lua
+++ b/ui/research.lua
@@ -37,7 +37,7 @@ function LeoAltholicResearchList:SetupEntry(control, data)
local list = {}
for _, research in pairs(data.research.doing[craft]) do
- if research.doneAt - GetTimeStamp() < 0 then
+ if research.doneAt ~= nil and research.doneAt - GetTimeStamp() < 0 then
researching = researching - 1
elseif first == nil then
first = research