changeset 131:78c6d905c2e1

Ticket 41 - Fixed a bug that occured if you created items without ever opening /ia crafting.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Wed, 15 Sep 2010 20:45:26 -0700
parents f37ab41f1928
children 0eaec1b52a63
files CHANGELOG.txt Modules/Crafting.lua
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG.txt	Fri Sep 03 23:52:47 2010 -0700
+++ b/CHANGELOG.txt	Wed Sep 15 20:45:26 2010 -0700
@@ -1,3 +1,7 @@
+2010-09-15  Asa Ayers  <Asa.Ayers@Gmail.com>
+
+- Ticket 41 - Fixed a bug that occured if you created items without ever opening /ia crafting.
+
 2010-09-03  Asa Ayers  <Asa.Ayers@Gmail.com>
 
 - Re-enabled IA QuickAuctions decider. I unintentionally disabled it when working on the QAManager code.
--- a/Modules/Crafting.lua	Fri Sep 03 23:52:47 2010 -0700
+++ b/Modules/Crafting.lua	Wed Sep 15 20:45:26 2010 -0700
@@ -723,6 +723,11 @@
 end
 
 function ItemAuditor:RefreshCraftingTable()
+	-- If the crafting table hasn't been created/displayed, there is no
+	-- reason to try to update it.
+	if not craftingTable then
+		return
+	end
 	tableData = {}
 	nameMap = {}
 	for key, data in pairs(realData) do