aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/gameloader.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-31 20:21:02 +0300
committerEugene Sandulenko2013-09-06 14:51:09 +0300
commit633a0fcd86e47b16d77be32a822f3e57120b9796 (patch)
tree19257503a88807c9d14a1e9cfbe72f5e75bd0d22 /engines/fullpipe/gameloader.cpp
parent6e64897e725e06fe00a39629fdfd7dec35a9574f (diff)
downloadscummvm-rg350-633a0fcd86e47b16d77be32a822f3e57120b9796.tar.gz
scummvm-rg350-633a0fcd86e47b16d77be32a822f3e57120b9796.tar.bz2
scummvm-rg350-633a0fcd86e47b16d77be32a822f3e57120b9796.zip
FULLPIPE: Fix scene loading
Diffstat (limited to 'engines/fullpipe/gameloader.cpp')
-rw-r--r--engines/fullpipe/gameloader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp
index c627550275..7ae591911b 100644
--- a/engines/fullpipe/gameloader.cpp
+++ b/engines/fullpipe/gameloader.cpp
@@ -135,7 +135,7 @@ bool CGameLoader::loadScene(int sceneId) {
if (idx < 0)
return false;
- if (st->_scene)
+ if (!st->_scene)
st->loadScene();
if (st->_scene) {
@@ -184,7 +184,7 @@ bool CGameLoader::gotoScene(int sceneId, int entranceId) {
sg->setSubVarAsInt("Entrance", entranceId);
if (!g_fullpipe->sceneSwitcher(_sc2array[sc2idx]._entranceData[entranceIdx]))
- return 0;
+ return false;
g_fullpipe->_msgObjectId2 = 0;
g_fullpipe->_msgY = -1;