aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/ai-funcs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp
index 093fbd53f6..771279ad76 100644
--- a/engines/hdb/ai-funcs.cpp
+++ b/engines/hdb/ai-funcs.cpp
@@ -458,6 +458,7 @@ void AI::stopEntity(AIEntity *e) {
e->goalX = e->tileX;
e->goalY = e->tileY;
e->drawXOff = e->drawYOff = 0;
+ e->goalX = e->goalY = e->xVel = e->yVel = 0;
// Don't change the state of Diverters or Floating entities
switch (e->state) {