Open Protuhj opened 5 hours ago
I modified the upper loop as follows to fix it temporarily, you might have your own way to solve it:
--lets get an expansion list so we can sort the top part by expansion release
for i=0, GetNumExpansions() do
local eTmp = _G['EXPANSION_NAME'..i]
if eTmp then
eTmp = eTmp:gsub("^The ", "")
expansionList[eTmp] = i
end
end
I modified the code in
currency.lua
to see what was happening as follows:The first print out I added shows that the
_G['EXPANSION_NAME .. i]
results in the full expansion name, including "The" -- e.g. "The Burning Crusade" and "The War Within".The second print out I added shows that the header field doesn't include "The" for those same expansions, resulting in TBC and TWW to be sorted with -100 instead of their appropriate value.
(You can see these header value names in the "real" currency window.)