fini PiecesList
This commit is contained in:
@@ -20,7 +20,7 @@ Bag::Bag(std::shared_ptr<PiecesList> piecesList) :
|
||||
}
|
||||
|
||||
Piece Bag::lookNext() {
|
||||
return *this->piecesList->getPiece(this->next.first, this->next.second);
|
||||
return this->piecesList->getPiece(this->next);
|
||||
}
|
||||
|
||||
Piece Bag::getNext() {
|
||||
@@ -31,7 +31,7 @@ Piece Bag::getNext() {
|
||||
this->prepareNext();
|
||||
|
||||
// return the next piece
|
||||
return *this->piecesList->getPiece(nextIndex.first, nextIndex.second);
|
||||
return this->piecesList->getPiece(nextIndex);
|
||||
}
|
||||
|
||||
void Bag::prepareNext() {
|
||||
|
||||
Reference in New Issue
Block a user