aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-07 00:42:57 +0100
committerEugene Sandulenko2016-01-07 00:42:57 +0100
commit07642d291e7ced77a367ec9a91fa390e7c86e6e4 (patch)
treebe73498e30d8684317468a5cc1114dd4aa4d5753
parent6b428f211c45bbc3ef829b0032cb18d335408bce (diff)
downloadscummvm-rg350-07642d291e7ced77a367ec9a91fa390e7c86e6e4.tar.gz
scummvm-rg350-07642d291e7ced77a367ec9a91fa390e7c86e6e4.tar.bz2
scummvm-rg350-07642d291e7ced77a367ec9a91fa390e7c86e6e4.zip
WAGE: Fix scene randomization
-rw-r--r--engines/wage/world.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index 0b8529ec0b..7a15b9314a 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -441,7 +441,7 @@ void World::move(Chr *chr, Scene *scene, bool skipSort) {
Scene *World::getRandomScene() {
// Not including storage:
- return _orderedScenes[1 + _engine->_rnd->getRandomNumber(_orderedScenes.size() - 1)];
+ return _orderedScenes[1 + _engine->_rnd->getRandomNumber(_orderedScenes.size() - 2)];
}
Scene *World::getSceneAt(int x, int y) {