View Single Post
09/08/15, 04:22 AM   #7
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Map/WorldMapFilters_Shared.lua:40
Lua Code:
  1. return self.modeVars.filters[self.mapFilterType][mapPinGroup]

My guess is that filters[self.mapFilterType] is nil there. If you check ./ingame/map/worldmap.lua +6238, you'll see there aren't filters[mapFilterType] tables for every mapMode/mapFilterType combination.

Edit: specifically, MAP_MODE_AVA_RESPAWN doesn't have filters for MAP_FILTER_TYPE_AVA_IMPERIAL

Edit2: Can't test it myself
Lua Code:
  1. CALLBACK_MANAGER:RegisterCallback("OnWorldMapSavedVarsReady", function(savedVars)
  2.     local filters = savedVars[MAP_MODE_AVA_RESPAWN].filters
  3.     if not filters[MAP_FILTER_TYPE_AVA_IMPERIAL] then
  4.         filters[MAP_FILTER_TYPE_AVA_IMPERIAL] = {}
  5.     end
  6. end)

Last edited by merlight : 09/08/15 at 04:31 AM. Reason: wrong table
  Reply With Quote