summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ur.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ur.cpp b/src/ur.cpp
index f0b2cd0..a1d88e8 100644
--- a/src/ur.cpp
+++ b/src/ur.cpp
@@ -337,7 +337,7 @@ main()
// did we take a piece
if (takenPieceId >= 0) {
for (auto& ep : (*enemyPieces)) {
- if (ep.id = takenPieceId) {
+ if (ep.id == takenPieceId) {
ep.sprite.setPosition(ep.origin);
ep.position = -1;
}