fixed the is_within_bounds check
This commit is contained in:
parent
5f79b81ce4
commit
e7fc1b06de
@ -55,7 +55,7 @@ struct Coords {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool is_within_bounds() const {
|
bool is_within_bounds() const {
|
||||||
return this->to_index() < 64;
|
return 0 <= x && x < 8 && 0 <= y && y < 8;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user