Fix for lua error on login.
Peter Eliasson [03-05-15 - 17:44]
Fix for lua error on login.
the local function resetDb was trying to use self:Debug, which is nil.
diff --git a/VERSION_CHANGES.md b/VERSION_CHANGES.md
index c879c2a..a4bbfda 100644
--- a/VERSION_CHANGES.md
+++ b/VERSION_CHANGES.md
@@ -1,3 +1,3 @@
-Version 1.0.0
+Version 1.0.1-beta
-* Version bump for patch 6.1
\ No newline at end of file
+* Fix for lua error on login (Ticket #2).
\ No newline at end of file
diff --git a/src/migrate.lua b/src/migrate.lua
index b712785..e47893d 100644
--- a/src/migrate.lua
+++ b/src/migrate.lua
@@ -92,7 +92,7 @@ local migrateTable = {
}
local function resetDb()
- self:Debug("Resetting db");
+ addon:Debug("Resetting db");
addon.db:ResetDB();
end