# HG changeset patch # User James D. Callahan III # Date 1372711582 18000 # Node ID e5c2dc3c7f6f7f25fcacb0a2b74c5eaf3d2d2abc # Parent 0946f1091810e52765901d1ca9dbf99f397ecd56 PLAYER_GUID assignment fix. diff -r 0946f1091810 -r e5c2dc3c7f6f Main.lua --- a/Main.lua Mon Jul 01 13:04:27 2013 -0500 +++ b/Main.lua Mon Jul 01 15:46:22 2013 -0500 @@ -38,7 +38,7 @@ local OBJECT_ID_FORGE = 1685 local PLAYER_CLASS = _G.select(2, _G.UnitClass("player")) local PLAYER_FACTION = _G.UnitFactionGroup("player") -local PLAYER_GUID = _G.UnitGUID("player") +local PLAYER_GUID local PLAYER_NAME = _G.UnitName("player") local PLAYER_RACE = _G.select(2, _G.UnitRace("player")) @@ -783,6 +783,8 @@ function WDP:OnEnable() + PLAYER_GUID = _G.UnitGUID("player") + for event_name, mapping in pairs(EVENT_MAPPING) do if EVENT_DEBUG then self:RegisterEvent(event_name, "EventDispatcher")