aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--world.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/world.cpp b/world.cpp
index 7f78253..5d82073 100644
--- a/world.cpp
+++ b/world.cpp
@@ -84,7 +84,13 @@ Instruction Robot::resolve(World &world){
break;
}
case arg_t::constant:
- assert(false);
+ assert(!arg.remote);
+ if(arg.name=="fields"){
+ arg.type=arg_t::number;
+ arg.num=SIZE;
+ } else assert(false);
+ break;
+
default:
assert(false);
}