Skip to content

Commit

Permalink
Fix bug in rebuild path
Browse files Browse the repository at this point in the history
  • Loading branch information
rossnichols committed Jan 4, 2021
1 parent e876ea6 commit f6db947
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ABGP/hardcoded.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local _G = _G;
local ABGP = _G.ABGP;

local pairs = pairs;
local type = type;

_G.ABGP_Data2 = {};

Expand Down Expand Up @@ -21354,7 +21355,7 @@ function ABGP:CheckHardcodedData()
for key, initialData in pairs(self.initialData) do
_G.ABGP_Data2[key] = _G.ABGP_Data2[key] or { timestamp = 0, data = {} };

if _G.ABGP_Data2[key].timestamp < initialData.timestamp then
if _G.ABGP_Data2[key].timestamp < initialData.timestamp or type(_G.ABGP_Data2[key].data) ~= "table" then
_G.ABGP_Data2[key].timestamp = initialData.timestamp;
_G.ABGP_Data2[key].data = self.tCopy(initialData.data);
end
Expand Down
2 changes: 1 addition & 1 deletion ABGP/sync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ end

function ABGP:HistoryTriggerRebuild()
self:ClearSyncWarnings();
SetHistory(invalidBaseline);
SetBaseline(invalidBaseline);
self:HistoryTriggerSync();
end

Expand Down

0 comments on commit f6db947

Please sign in to comment.