aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorStrangerke2014-10-13 08:12:21 +0200
committerStrangerke2014-10-13 08:12:21 +0200
commit78accfa64783332cecb80d62753266a25abc6021 (patch)
treede2cc6329b4e415674c9cae7664f69aefec3dbbb /engines/tsage
parent254c0a3b5ca4dcd31583315a0a24773ac7d1f370 (diff)
downloadscummvm-rg350-78accfa64783332cecb80d62753266a25abc6021.tar.gz
scummvm-rg350-78accfa64783332cecb80d62753266a25abc6021.tar.bz2
scummvm-rg350-78accfa64783332cecb80d62753266a25abc6021.zip
TSAGE: R2R - Fix bug in getRandomCardFromHand()
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/ringworld2/ringworld2_scenes1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes1.cpp b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
index dc51c7086e..cf611090a0 100644
--- a/engines/tsage/ringworld2/ringworld2_scenes1.cpp
+++ b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
@@ -5080,7 +5080,7 @@ int Scene1337::getRandomCardFromHand(int playerId) {
int randIndx;
for (;;) {
randIndx = R2_GLOBALS._randomSource.getRandomNumber(3);
- if (_gameBoardSide[playerId]._handCard[randIndx]._cardId == 0)
+ if (_gameBoardSide[playerId]._handCard[randIndx]._cardId != 0)
break;
}