Skip to content

Commit 9192b32

Browse files
author
Alex
committed
modified: src/GamePiece.cpp
1 parent db8c462 commit 9192b32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GamePiece.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ GamePiece(board, location), resource(resource), value(value) {
1818
}
1919

2020
ResourceTile::~ResourceTile() {
21-
int a;
21+
2222
}
2323

2424

2525
//pay resource cards to owners of this tile
2626

2727
/*
2828
void ResourceTile::Payout() {
29-
std::vector<GamePiece> neighbors;
29+
std::vector<GamePiece> neighbors = board.GetNeighbors(location);
3030
for (int i = 0; i < neighbors.size; i++) //someone tell me how to traverse a vector less stupidly
3131
{
3232
neighbors[i].owner.addresource(resource, 1 + neighbors[i].city)

0 commit comments

Comments
 (0)