aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--world.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/world.cpp b/world.cpp
index 0a3c2ff..ff13d46 100644
--- a/world.cpp
+++ b/world.cpp
@@ -176,7 +176,7 @@ WorldAction Robot::execute(Instruction &ins,World &world){
return WorldAction::die;
case ins_t::move:
- assert(mobile);
+ if(!mobile)return WorldAction::die;
if(world.targetbot(this)==nullptr){
action=WorldAction::move;
}