Skip to content
Permalink
Browse files

SCI: Fix Set But Unused Variable GCC Warning

  • Loading branch information...
digitall committed Oct 10, 2019
1 parent c5e3ccb commit 3f1ff3eaea0732c48785915741fe711e0d476a3d
Showing with 0 additions and 3 deletions.
  1. +0 −3 engines/sci/engine/hoyle5poker.cpp
@@ -140,7 +140,6 @@ int getCardTotal(SciArray *data, int player) {

Common::sort(cards, cards + 5, Common::Less<int>());

int lastCard = -1;
int sameRank = 0;
int sameSuit = 0;
int orderedCards = 0;
@@ -157,8 +156,6 @@ int getCardTotal(SciArray *data, int player) {
}
if (cards[i] == cards[i + 1] - 1)
orderedCards == 0 ? orderedCards += 2 : orderedCards++;

lastCard = cards[i];
}

bool isFullHouse =

1 comment on commit 3f1ff3e

@lskovlun

This comment has been minimized.

Copy link
Member

commented on 3f1ff3e Oct 11, 2019

Isn't this WIP? Better leave it so the final implementor doesn't get confused about it...

Please sign in to comment.
You can’t perform that action at this time.