Mercurial > wow > wowdb-profiler
changeset 300:e5c2dc3c7f6f
PLAYER_GUID assignment fix.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Mon, 01 Jul 2013 15:46:22 -0500 |
parents | 0946f1091810 |
children | 216f807df434 |
files | Main.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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")