From c0af9f41451d782b316feea8cf93fc50d4bd6733 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Nov 2015 19:48:13 +0300 Subject: Allow use support/friendly skills on self if target not selected. --- src/gui/windows/skilldialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 36b72d051..bcc023731 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -736,7 +736,9 @@ void SkillDialog::useSkill(const SkillInfo *const info, } case SkillType::Support: { - const Being *const being = localPlayer->getTarget(); + const Being *being = localPlayer->getTarget(); + if (!being) + being = localPlayer; if (being) { skillHandler->useBeing(info->id, -- cgit v1.2.3-70-g09d2