home · contact · privacy
Don't hardcode map object action id for "move" in turn_over()!
[plomrogue] / src / misc.c
index 4e6527d1acdeb91c71f6136b0f618e076e807fec..0e8abe9c6eecc755fd2fd37774887f9621ff1727 100644 (file)
@@ -250,7 +250,7 @@ extern void turn_over(char action)
                     break;
                 }
                 char * sel = "NSEW";
-                map_object->command = 1;
+                map_object->command = get_moa_id_by_name("move");
                 map_object->arg = sel[rrand() % 4];
             }
             first_round = 0;