little optimization
This commit is contained in:
parent
5fdc7c4d32
commit
ebf3a4fea6
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ int PlateauSafari::zoneDeplacementOk(const Joueur *joueur) const {
|
|||
for (int i = 0; i < taille && cherchesCasesDispo; ++i) {
|
||||
for (int j = 0; j < taille && cherchesCasesDispo; ++j) {
|
||||
// Regarde les cases vide uniquement
|
||||
if (getPiece(i, j) != nullptr) {
|
||||
if (plateau[i][j] != nullptr) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue