Open NayooZ opened 2 years ago
Had same Problem and brought in a workaround. Problem is, your DK did not select "Deathknight" as the class probably, so its empty/nil.
at around line ~588 i added this (you could also add custom color like some grey if there is no class). By time i might give a merge request
local altStatus = ""
local linebreaker = " "
local noteHolder = ""
local OSText = ""
local character_class = 11 --just declare as some default, so it shows atleast SOMEthing instead of NOTHing
if ItemListsDB.showMemberNotes then
if smallestWish.character_note ~= nil then
noteHolder = " {"..smallestWish.character_note.."} "
end
end
if i % 5 == 0 then linebreaker = "\n" end
if ItemListsDB.displayAlts and smallestWish.character_is_alt == 1 then altStatus = altColor end
if ItemListsDB.displayOS and smallestWish.is_offspec == 1 then OSText = "-OS" end
if smallestWish.character_class ~= nil then character_class = smallestWish.character_class end
wishlistString = wishlistString .. classColorsTable[ character_class ] .. smallestWish.character_name .. altStatus .. "[" .. smallestWish.sort_order .. OSText .. "]\124r" .. noteHolder .. linebreaker
end