Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 8bb20f8

Browse files
committed
small change to previous pr. Fixes #427
1 parent 28fa4ac commit 8bb20f8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Objects/ACTIONBUTTON_DragAndDrop.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,10 @@ function ACTIONBUTTON:PlaceMount(action1, action2)
365365
local mountName, mountSpellID, mountIcon = C_MountJournal.GetMountInfoByID(action1)
366366
local mountSpell
367367

368-
if action1 == 0 then
368+
if action1 == 0 or not mountSpellID or mountSpellID == 0 then
369369
return
370370
else
371-
if not mountSpellID or mountSpellID == 0 then
372-
return
373-
else
374-
mountSpell = GetSpellInfo(mountSpellID)
375-
end
371+
mountSpell = GetSpellInfo(mountSpellID)
376372
end
377373

378374
--The Summon Random Mount from the Mount Journal

0 commit comments

Comments
 (0)