Quantcast

Fix bug with player name color.

Mike Battersby [09-13-13 - 08:27]
Fix bug with player name color.
Filename
BagSync.lua
diff --git a/BagSync.lua b/BagSync.lua
index 6f7c53d..d94951c 100644
--- a/BagSync.lua
+++ b/BagSync.lua
@@ -795,9 +795,9 @@ local function getNameColor(sName, sClass)
 	return format(MOSS, sName)
 end

-local function getPlayerNameColor(playerName)
-	if BagSyncDB[currentRealm][playerName] then
-		local sClass = BagSyncDB[currentRealm][playerName].class
+local function getPlayerNameColor(sName)
+	if BagSyncDB[currentRealm][sName] then
+		local sClass = BagSyncDB[currentRealm][sName].class
 		return getNameColor(sName, sClass)
 	end
 	return format(MOSS, sName)