aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner
diff options
context:
space:
mode:
authorPeter Kohaut2018-03-25 15:10:55 +0200
committerPeter Kohaut2018-03-25 15:10:55 +0200
commit3693be69e8198b7928c4c3203b08b992a2dfa5e7 (patch)
tree42a34fda2580e53af7bd05c7a8d14a77cbdbfaaa /engines/bladerunner
parentb991123e83433f57996c972bbfd32cd845ce0041 (diff)
downloadscummvm-rg350-3693be69e8198b7928c4c3203b08b992a2dfa5e7.tar.gz
scummvm-rg350-3693be69e8198b7928c4c3203b08b992a2dfa5e7.tar.bz2
scummvm-rg350-3693be69e8198b7928c4c3203b08b992a2dfa5e7.zip
BLADERUNNER: Added missing initializon of scene objects
Diffstat (limited to 'engines/bladerunner')
-rw-r--r--engines/bladerunner/scene_objects.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/bladerunner/scene_objects.cpp b/engines/bladerunner/scene_objects.cpp
index 6857416197..30802a8d64 100644
--- a/engines/bladerunner/scene_objects.cpp
+++ b/engines/bladerunner/scene_objects.cpp
@@ -36,9 +36,7 @@ SceneObjects::SceneObjects(BladeRunnerEngine *vm, View *view) {
_count = 0;
- for (int i = 0; i < kSceneObjectCount; ++i) {
- _sceneObjectsSortedByDistance[i] = -1;
- }
+ clear();
}
SceneObjects::~SceneObjects() {