summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/skilldialog.cpp4
1 files changed, 3 insertions, 1 deletions
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,