illiath / EnhancedFlightMap

Flight addon for WoW
Apache License 2.0
3 stars 7 forks source link

/efm open errors out on outland maps until you open an azeroth map, and needs an outland button #19

Closed beren12 closed 2 years ago

beren12 commented 3 years ago
Message: Interface\AddOns\EnhancedFlightMap\MapWindow.lua:383: attempt to index local 'azerothMapInfo' (a nil value)
Time: Sat May 15 10:46:05 2021
Count: 1
Stack: Interface\AddOns\EnhancedFlightMap\MapWindow.lua:383: attempt to index local 'azerothMapInfo' (a nil value)
[string "@Interface\AddOns\EnhancedFlightMap\MapWindow.lua"]:383: in function `EFM_GetContinentList'
[string "@Interface\AddOns\EnhancedFlightMap\shared_functions.lua"]:141: in function `EFM_Shared_GetContinentName'
[string "@Interface\AddOns\EnhancedFlightMap\MapWindow.lua"]:194: in function `EFM_MW_ChangeMap'
[string "@Interface\AddOns\EnhancedFlightMap\MapWindow.lua"]:214: in function `EFM_MW_OpenMap'
[string "@Interface\AddOns\EnhancedFlightMap\EnhancedFlightMap.lua"]:113: in function `EFM_SlashCommandHandler'
[string "@Interface\AddOns\EnhancedFlightMap\EnhancedFlightMap.lua"]:24: in function `?'
[string "@Interface\FrameXML\ChatFrame.lua"]:4825: in function `ChatEdit_ParseText'
[string "@Interface\FrameXML\ChatFrame.lua"]:4488: in function `ChatEdit_SendText'
[string "@Interface\FrameXML\ChatFrame.lua"]:4524: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals: continentNameList = <table> {
}
continentIDList = <table> {
}
mapID = 1949
azerothMapInfo = nil
(*temporary) = 1949
(*temporary) = 1
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = 0
(*temporary) = <table> {
 mapType = 0
 mapID = 946
 name = "Cosmic"
 parentMapID = 0
}
(*temporary) = 0
(*temporary) = "attempt to index local 'azerothMapInfo' (a nil value)"
beren12 commented 3 years ago

Looks like we can special case outland specific stuff if needed, as the client version will be 20501 for tbc classic.

beren12 commented 2 years ago

Fixed.