diff WorldPlan.lua @ 64:876c3f0bfd0e

- script upvalues cleanup - add quest active status to pin metadata
author Nick@Zahhak
date Thu, 23 Mar 2017 05:26:51 -0400
parents 8e130c92698f
children e43e10c5576b
line wrap: on
line diff
--- a/WorldPlan.lua	Tue Mar 21 16:36:12 2017 -0400
+++ b/WorldPlan.lua	Thu Mar 23 05:26:51 2017 -0400
@@ -3,7 +3,7 @@
 -- %file-revision%
 local addonFileName, db = ...
 local print = DEVIAN_WORKSPACE and function(...) _G.print('WP', ...) end or function() end
-local WP_VERSION = "1.0"
+local WP_VERSION = "1.2"
 local tinsert, pairs, floor = tinsert, pairs, floor
 local tremove, ipairs, wipe, unpack = tremove, ipairs, wipe, unpack
 local select, type, tostring, tonumber = select, type, tostring, tonumber
@@ -568,6 +568,7 @@
   self.callbacks[func] = func
 end
 function WorldPlanCore:FireCallbacks()
+  self.callbacks = self.callbacks or {}
   for func in pairs(self.callbacks) do
     func()
   end