diff options
-rw-r--r-- | world.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |