aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/collision.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/collision.cpp b/src/collision.cpp
index 16db3310c..74c0c25c3 100644
--- a/src/collision.cpp
+++ b/src/collision.cpp
@@ -332,8 +332,10 @@ collisionMoveResult collisionMoveSimple(Environment *env, IGameDef *gamedef,
// Do not move if world has not loaded yet, since custom node boxes
// are not available for collision detection.
- if (!any_position_valid)
+ if (!any_position_valid) {
+ *speed_f = v3f(0, 0, 0);
return result;
+ }
} // tt2