summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/touchactions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/touchactions.cpp b/src/touchactions.cpp
index 5f236ea4e..f0b46a31f 100644
--- a/src/touchactions.cpp
+++ b/src/touchactions.cpp
@@ -24,6 +24,7 @@
#include "being.h"
#include "game.h"
#include "keydata.h"
+#include "localplayer.h"
#include "logger.h"
#include "mouseinput.h"
#include "touchmanager.h"
@@ -156,6 +157,8 @@ impHandler(attackOut)
impHandler(cancelClick)
{
ActionManager::stopAttack(tempEvent);
+ if (!player_node->getTarget())
+ ActionManager::sit(tempEvent);
}
impHandler(cancelUp)