Shestak UI
Go Back   Shestak UI > Interface Forums > Other Community > Bugs Reports

Bugs Reports Report any bugs or issues you come across with ShestakUI.

Advertising

 
Thread Tools
Old 22.11.2013, 10:58   #1
 Elder Member User Information

Sakaras's Avatar
Bug If not Talents, return nil for Tooltip

ShestakUI version: 4.50
WoW version: 5.41

Lua error code:
Code [Select]:
...terface\AddOns\ShestakUI\Modules\Tooltip\Talents.lua:38: Usage: GetSpecializationInfo(specIndex[, isInspect[, isPet]])
Count: 1

Call Stack:
[C]: ?
[C]: in function `GetSpecializationInfo'
...terface\AddOns\ShestakUI\Modules\Tooltip\Talents.lua:38: in function <...terface\AddOns\ShestakUI\Modules\Tooltip\Talents.lua:29>
...terface\AddOns\ShestakUI\Modules\Tooltip\Talents.lua:126: in function <...terface\AddOns\ShestakUI\Modules\Tooltip\Talents.lua:101>
[C]: ?
[C]: ?
[C]: in function `SetUnit'
Interface\FrameXML\UnitFrame.lua:398: in function `UnitFrame_UpdateTooltip'
Interface\FrameXML\UnitFrame.lua:385: in function <Interface\FrameXML\UnitFrame.lua:372>
Fixed: ...\AddOns\ShestakUI\Modules\Tooltip\Talents.lua: #L35~L40
Code [Select]:
	else
		local currentSpec = GetSpecialization()
		if not currentSpec then return nil end		-- Add this line
		local _, name = GetSpecializationInfo(currentSpec)
		local currentSpecName = currentSpec and name or L_TOOLTIP_NO_TALENT
		current.tree = currentSpecName
	end
Says Thank:
Shestak (22.11.2013), Wetxius (22.11.2013)
Old 22.11.2013, 10:58   #1.5 - Disable Ads

Advertise on this site

Old 22.11.2013, 14:47   #2
Shestak
 Junior Member User Information

Shestak's Avatar
https://github.com/Shestak/ShestakUI...a00a89787fb26f

Tags
tooltip

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Fixed] Change talents error Lamindra Bugs Reports 28 01.11.2013 20:10
Tooltip x Cursor DevilCrow Technical Support 8 27.01.2013 22:42
[Fixed] Enemy talents spec Wetxius Bugs Reports 5 09.02.2012 16:27
How to add realm in tooltip decypher Technical Support 2 10.12.2011 13:23
Tooltip : < Made by .. > megapixel Technical Support 2 09.07.2010 17:51


Mobile Style Русский English Deutsch Italian Chinese