Fix copy paste error: self = obj

This commit is contained in:
Rochet2
2015-09-12 19:56:09 +03:00
parent 581c176da1
commit 3cfa7ac575

View File

@@ -37,10 +37,10 @@ local function DestroyMapData(event, obj)
end
local function DestroyObjData(event, obj)
local map = self:GetMapId()
local inst = self:GetInstanceId()
local otype = self:GetObjectType()
local guid = otype == "Map" and 1 or self:GetGUIDLow()
local map = obj:GetMapId()
local inst = obj:GetInstanceId()
local otype = obj:GetObjectType()
local guid = otype == "Map" and 1 or obj:GetGUIDLow()
local mapdata = variableStores[otype][map]
if mapdata then
local instancedata = mapdata[inst]