diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-19 19:48:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-19 19:48:13 +0300 |
commit | c0af9f41451d782b316feea8cf93fc50d4bd6733 (patch) | |
tree | d7e0407a5e581cb6e978e87892c5cdb2e81a6265 /src | |
parent | 94ab5a24a5deee4102f61ce1720c92eef47036f9 (diff) | |
download | manaverse-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.cpp | 4 |
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, |