Skip to content

Commit

Permalink
WAGE: Fix scene randomization
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 6, 2016
1 parent 6b428f2 commit 07642d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/wage/world.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 07642d2

Please sign in to comment.