From 33b27b8db3b86fac77ef12a6cbda92050c5d3bd3 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 30 Apr 2016 11:38:05 +0200 Subject: GNAP: Fix regression --- engines/gnap/scenes/arcade.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/gnap/scenes/arcade.cpp') 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) { -- cgit v1.2.3