summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 465cb088..2c8414d8 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -635,7 +635,7 @@ void Being::setAction(Action action, int attackType)
void Being::setDirection(Uint8 direction)
{
- if (mDirection == direction)
+ if (!direction || mDirection == direction)
return;
mDirection = direction;