Mercurial > wow > wowdb-profiler
changeset 334:5bc69e705add WoD
Globals cleanup.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Tue, 26 Aug 2014 11:20:13 -0500 |
parents | 601d3e517460 |
children | 2ca6db4e2296 |
files | Main.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Tue Aug 26 10:46:59 2014 -0500 +++ b/Main.lua Tue Aug 26 11:20:13 2014 -0500 @@ -10,6 +10,7 @@ local math = _G.math local table = _G.table +local next = _G.next local select = _G.select local unpack = _G.unpack @@ -465,7 +466,7 @@ } - function MatchUnitTypes(unit_type_name) + local function MatchUnitTypes(unit_type_name) if not unit_type_name then return UNIT_TYPES.UNKNOWN end @@ -487,7 +488,7 @@ -- We might want to use some of this new information later, but leaving the returns alone for now local unit_type_name, unk_id1, server_id, instance_id, unk_id2, unit_idnum, spawn_id = (":"):split(guid) - unit_type = MatchUnitTypes(unit_type_name) + local unit_type = MatchUnitTypes(unit_type_name) if unit_type ~= UNIT_TYPES.PLAYER and unit_type ~= UNIT_TYPES.PET and unit_type ~= UNIT_TYPES.ITEM then local id_mapping = NPC_ID_MAPPING[unit_idnum]