fix build trainbot
This commit is contained in:
parent
fd269b491d
commit
ad58c0ec60
2 changed files with 4 additions and 1 deletions
|
|
@ -564,6 +564,7 @@ impl Board {
|
|||
}
|
||||
let checker_color = self.get_checkers_color(field)?;
|
||||
if Some(color) != checker_color {
|
||||
println!("field invalid : {:?}, {:?}, {:?}", color, field, self);
|
||||
return Err(Error::FieldInvalid);
|
||||
}
|
||||
let unit = match color {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue