From 25645ec9f13cc43b1e65a2bf968e02e962c1bfcd Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 12 Mar 2011 23:08:12 -0600 Subject: [PATCH] Future-proof the game version check against the number of entries in private.game_version_names instead of an error-prone exact version (which was WOTLK, by the way) --- Scanner.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scanner.lua b/Scanner.lua index 364dd9e..ab6c6e7 100644 --- a/Scanner.lua +++ b/Scanner.lua @@ -1310,7 +1310,7 @@ do if not game_vers then table.insert(output, "No expansion information: " .. tostring(spell_id) .. " " .. recipe_name) - elseif game_vers > private.game_versions.WOTLK then + elseif game_vers > #private.game_version_names then table.insert(output, "Expansion information too high: " .. tostring(spell_id) .. " " .. recipe_name) end local optimal = recipe.optimal_level -- 1.7.9.5