Modules/ActionBars: fix lua error with unreleased stuff
This commit is contained in:
parent
26a02358aa
commit
4d09122cd3
1 changed files with 3 additions and 1 deletions
|
|
@ -376,7 +376,9 @@ function AB:CreateVehicleLeave()
|
|||
|
||||
vehicle:SetScript("OnClick", Vehicle_ExitVehicle)
|
||||
vehicle:SetScript("OnEvent", Vehicle_OnEvent)
|
||||
vehicle:SetScript("OnEnter", MainMenuBarVehicleLeaveButtonMixin.OnEnter)
|
||||
if MainMenuBarVehicleLeaveButtonMixin then
|
||||
vehicle:SetScript("OnEnter", MainMenuBarVehicleLeaveButtonMixin.OnEnter)
|
||||
end
|
||||
vehicle:SetScript("OnLeave", GameTooltip_Hide)
|
||||
vehicle:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||
vehicle:RegisterEvent("UPDATE_BONUS_ACTIONBAR")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue