Quantcast

FIXED: (KillTrack.GetSortedMobTable) Was checking type on Global.MOBS instead of CharGlobal.MOBS.

F16Gaming [11-02-11 - 16:41]
FIXED: (KillTrack.GetSortedMobTable) Was checking type on Global.MOBS instead of CharGlobal.MOBS.
Filename
KillTrack.lua
diff --git a/KillTrack.lua b/KillTrack.lua
index d0e76cf..067d19e 100644
--- a/KillTrack.lua
+++ b/KillTrack.lua
@@ -152,7 +152,9 @@ function KT:GetSortedMobTable(mode)
 	local t = {}
 	for k,v in pairs(self.Global.MOBS) do
 		local cKills = 0
-		if self.CharGlobal.MOBS[k] and type(v) == "table" then cKills = self.CharGlobal.MOBS[k].Kills end
+		if self.CharGlobal.MOBS[k] and type(self.CharGlobal.MOBS[k]) == "table" then
+			cKills = self.CharGlobal.MOBS[k].Kills
+		end
 		if type(v) == "table" then
 			local entry = {Id = k, Name = v.Name, gKills = v.Kills, cKills = cKills}
 			table.insert(t, entry)