summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-19 19:48:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-19 19:48:13 +0300
commitc0af9f41451d782b316feea8cf93fc50d4bd6733 (patch)
treed7e0407a5e581cb6e978e87892c5cdb2e81a6265 /src
parent94ab5a24a5deee4102f61ce1720c92eef47036f9 (diff)
downloadmanaverse-c0af9f41451d782b316feea8cf93fc50d4bd6733.tar.gz
manaverse-c0af9f41451d782b316feea8cf93fc50d4bd6733.tar.bz2
manaverse-c0af9f41451d782b316feea8cf93fc50d4bd6733.tar.xz
manaverse-c0af9f41451d782b316feea8cf93fc50d4bd6733.zip
Allow use support/friendly skills on self if target not selected.
Diffstat (limited to 'src')
-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,