diff options
author | Peter Kohaut | 2018-03-25 15:10:55 +0200 |
---|---|---|
committer | Peter Kohaut | 2018-03-25 15:10:55 +0200 |
commit | 3693be69e8198b7928c4c3203b08b992a2dfa5e7 (patch) | |
tree | 42a34fda2580e53af7bd05c7a8d14a77cbdbfaaa /engines/bladerunner | |
parent | b991123e83433f57996c972bbfd32cd845ce0041 (diff) | |
download | scummvm-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.cpp | 4 |
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() { |