From 3cfa7ac575396325809fead6d8db740905b9e06c Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sat, 12 Sep 2015 19:56:09 +0300 Subject: [PATCH] Fix copy paste error: self = obj --- extensions/ObjectVariables.ext | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/ObjectVariables.ext b/extensions/ObjectVariables.ext index 99fac71..e69b40b 100644 --- a/extensions/ObjectVariables.ext +++ b/extensions/ObjectVariables.ext @@ -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]