additional initilations

His Dad [10-25-15 - 03:40]
additional initilations
Filename
AIResearchGrid.lua
AIResearchGrid.txt
doc/changelog.txt
diff --git a/AIResearchGrid.lua b/AIResearchGrid.lua
index 410be72..6c326a0 100644
--- a/AIResearchGrid.lua
+++ b/AIResearchGrid.lua
@@ -608,6 +608,14 @@ function AIRG.PopulateAll()
 		if AIRG.vars.styles[thisname] == nil then
 			AIRG.vars.styles[thisname] = {}
 		end
+
+		for i = 14 ,20  do	-- helps stop crashes when new styles are added
+			if AIRG.vars.styles[thisname][i] == nil then
+				AIRG.vars.styles[thisname][i] = {}
+			end
+		end
+
+
         -- Update the Styles for this char.
 		for i = 1, 14 do	--iterate over all non-dwemer styles
 			if  AIRG.vars.styles[thisname][i] then
@@ -638,12 +646,14 @@ function AIRG.PopulateAll()
 				AIRG.vars.styles[AIRG.all][18][i] = true
 			end
 		end
+
 		--Update Akaviri styles
 		for i = 1, 14 do	--iterate over all Mercenary Akaviri items
 			if  AIRG.vars.styles[thisname][19][i] then
 				AIRG.vars.styles[AIRG.all][19][i] = true
 			end
 		end
+
 		--Update Mercenary styles
 		for i = 1, 14 do	--iterate over all Mercenary Akaviri items
 			if  AIRG.vars.styles[thisname][20][i] then
diff --git a/AIResearchGrid.txt b/AIResearchGrid.txt
index 98bd98c..b00c348 100644
--- a/AIResearchGrid.txt
+++ b/AIResearchGrid.txt
@@ -1,6 +1,6 @@
-## Title: |cFFFFB0Research Grid|r v3.3.6
+## Title: |cFFFFB0Research Grid|r v3.3.7
 ## APIVersion: 100012
-## Version: 3.3.6
+## Version: 3.3.7
 ## Author: Stormknight and Team
 ## OptionalDependsOn: LibAddonMenu-2.0
 ## SavedVariables: AIRG_SavedVariables
diff --git a/doc/changelog.txt b/doc/changelog.txt
index da8073b..3f709dd 100644
--- a/doc/changelog.txt
+++ b/doc/changelog.txt
@@ -1,3 +1,10 @@
+2015-10-25 3.3.7
+	New Feature
+	Akaviri and Mercencary Akviri by scinutz
+	Bug Fix
+	None
+
+
 2015-10-14  v3.3.6
 	New Feature
 	None