diff options
author | Strangerke | 2016-04-30 11:38:05 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 12:14:48 +0200 |
commit | 33b27b8db3b86fac77ef12a6cbda92050c5d3bd3 (patch) | |
tree | b614e2102cb856f73f56357ca72e6c96d1cc4572 /engines/gnap/scenes/arcade.cpp | |
parent | 25fc9c0a1390c51f4a35f596b4a87b315d520a25 (diff) | |
download | scummvm-rg350-33b27b8db3b86fac77ef12a6cbda92050c5d3bd3.tar.gz scummvm-rg350-33b27b8db3b86fac77ef12a6cbda92050c5d3bd3.tar.bz2 scummvm-rg350-33b27b8db3b86fac77ef12a6cbda92050c5d3bd3.zip |
GNAP: Fix regression
Diffstat (limited to 'engines/gnap/scenes/arcade.cpp')
-rw-r--r-- | engines/gnap/scenes/arcade.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/gnap/scenes/arcade.cpp b/engines/gnap/scenes/arcade.cpp index a857427f3d..f16fc6d2a7 100644 --- a/engines/gnap/scenes/arcade.cpp +++ b/engines/gnap/scenes/arcade.cpp @@ -62,7 +62,7 @@ Scene49::Scene49(GnapEngine *vm) : Scene(vm) { } int Scene49::init() { - GameSys gameSys = *_vm->_gameSys; + GameSys& gameSys = *_vm->_gameSys; gameSys.setAnimation(0, 0, 0); gameSys.setAnimation(0, 0, 1); @@ -158,9 +158,9 @@ void Scene49::checkObstacles() { } void Scene49::updateObstacle(int id) { - GameSys gameSys = *_vm->_gameSys; - Scene49Obstacle &obstacle = _obstacles[id]; + GameSys& gameSys = *_vm->_gameSys; + Scene49Obstacle &obstacle = _obstacles[id]; obstacle._currId = obstacle._prevId; switch (obstacle._laneNum) { @@ -283,7 +283,7 @@ void Scene49::clearObstacle(int index) { } void Scene49::run() { - GameSys gameSys = *_vm->_gameSys; + GameSys& gameSys = *_vm->_gameSys; bool animToggle6 = false; bool animToggle5 = false; @@ -507,7 +507,7 @@ void Scene49::run() { } void Scene49::updateAnimations() { - GameSys gameSys = *_vm->_gameSys; + GameSys& gameSys = *_vm->_gameSys; for (int i = 0; i < 5; ++i) { if (gameSys.getAnimationStatus(i + 2) == 2) { |