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

Commit

Permalink
small change to previous pr. Fixes #427
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Jan 30, 2022
1 parent 28fa4ac commit 8bb20f8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Objects/ACTIONBUTTON_DragAndDrop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,10 @@ function ACTIONBUTTON:PlaceMount(action1, action2)
local mountName, mountSpellID, mountIcon = C_MountJournal.GetMountInfoByID(action1)
local mountSpell

if action1 == 0 then
if action1 == 0 or not mountSpellID or mountSpellID == 0 then
return
else
if not mountSpellID or mountSpellID == 0 then
return
else
mountSpell = GetSpellInfo(mountSpellID)
end
mountSpell = GetSpellInfo(mountSpellID)
end

--The Summon Random Mount from the Mount Journal
Expand Down

0 comments on commit 8bb20f8

Please sign in to comment.