aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus/neighborhood/norad
diff options
context:
space:
mode:
authorStrangerke2016-06-14 07:41:00 +0200
committerStrangerke2016-06-14 07:43:04 +0200
commitdf02215957ebf220a35995deef9cb745af8f9aac (patch)
treea7c0516270297d99ebe4d34ed00d5aa193798752 /engines/pegasus/neighborhood/norad
parent95f1e6555c1ff7821834117f2b2983e0d3786344 (diff)
downloadscummvm-rg350-df02215957ebf220a35995deef9cb745af8f9aac.tar.gz
scummvm-rg350-df02215957ebf220a35995deef9cb745af8f9aac.tar.bz2
scummvm-rg350-df02215957ebf220a35995deef9cb745af8f9aac.zip
PEGASUS: Initialize some variables
Diffstat (limited to 'engines/pegasus/neighborhood/norad')
-rw-r--r--engines/pegasus/neighborhood/norad/alpha/noradalpha.cpp1
-rw-r--r--engines/pegasus/neighborhood/norad/delta/globegame.cpp3
-rw-r--r--engines/pegasus/neighborhood/norad/pressuretracker.cpp1
3 files changed, 5 insertions, 0 deletions
diff --git a/engines/pegasus/neighborhood/norad/alpha/noradalpha.cpp b/engines/pegasus/neighborhood/norad/alpha/noradalpha.cpp
index 6a24113465..5c2af3eec2 100644
--- a/engines/pegasus/neighborhood/norad/alpha/noradalpha.cpp
+++ b/engines/pegasus/neighborhood/norad/alpha/noradalpha.cpp
@@ -93,6 +93,7 @@ NoradAlpha::NoradAlpha(InputHandler *nextHandler, PegasusEngine *owner) : Norad(
_subControlRoom = kNorad22West;
_subPrepFailed = false;
+ _fillingStationItem = nullptr;
setIsItemTaken(kGasCanister);
}
diff --git a/engines/pegasus/neighborhood/norad/delta/globegame.cpp b/engines/pegasus/neighborhood/norad/delta/globegame.cpp
index 9ea3036024..434b95c978 100644
--- a/engines/pegasus/neighborhood/norad/delta/globegame.cpp
+++ b/engines/pegasus/neighborhood/norad/delta/globegame.cpp
@@ -42,6 +42,9 @@ GlobeTracker::GlobeTracker(Movie *globeMovie, Picture *leftHighlight, Picture *r
_rightHighlight = rightHighlight;
_upHighlight = upHighlight;
_downHighlight = downHighlight;
+ _trackSpot = nullptr;
+ _trackTime = -1;
+ _trackDirection = kTrackDown;
}
void GlobeTracker::setTrackParameters(const Hotspot *trackSpot, GlobeTrackDirection direction) {
diff --git a/engines/pegasus/neighborhood/norad/pressuretracker.cpp b/engines/pegasus/neighborhood/norad/pressuretracker.cpp
index 5aac19dcbe..390e3e33b6 100644
--- a/engines/pegasus/neighborhood/norad/pressuretracker.cpp
+++ b/engines/pegasus/neighborhood/norad/pressuretracker.cpp
@@ -34,6 +34,7 @@ PressureTracker::PressureTracker(PressureDoor *pressureDoor) {
_pressureDoor = pressureDoor;
_trackSpot = 0;
_trackTime = 0;
+ _trackButton = nullptr;
}
void PressureTracker::setTrackParameters(const Hotspot *trackSpot, Sprite *trackButton) {