aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2010-03-26 22:16:45 +0000
committerPaul Gilbert2010-03-26 22:16:45 +0000
commit8dfd670b22cf118aa3fd1fc6198ff539ac332a79 (patch)
tree3602c8672ce32adf6e77ca3ab698c62357dfab55 /engines/lure
parent73787f05f009868ddf6c1f8e1a7d61b6a38c07d9 (diff)
downloadscummvm-rg350-8dfd670b22cf118aa3fd1fc6198ff539ac332a79.tar.gz
scummvm-rg350-8dfd670b22cf118aa3fd1fc6198ff539ac332a79.tar.bz2
scummvm-rg350-8dfd670b22cf118aa3fd1fc6198ff539ac332a79.zip
Added explicit initialisation of NPC directions in the hotspot constructors
svn-id: r48406
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/hotspots.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index 9ef6c96f57..a40eaaddfb 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -50,6 +50,7 @@ Hotspot::Hotspot(HotspotData *res): _pathFinder(this) {
_frames = NULL;
_numFrames = 0;
_persistant = false;
+ _direction = NO_DIRECTION;
_hotspotId = res->hotspotId;
_originalId = res->hotspotId;
@@ -109,6 +110,7 @@ Hotspot::Hotspot(Hotspot *character, uint16 objType): _pathFinder(this) {
_voiceCtr = 0;
_walkFlag = false;
_skipFlag = false;
+ _direction = NO_DIRECTION;
switch (objType) {
case VOICE_ANIM_IDX:
@@ -196,6 +198,7 @@ Hotspot::Hotspot(): _pathFinder(NULL) {
_frameWidth = _width;
_frameStartsUsed = false;
_tempDest.counter = 0;
+ _direction = NO_DIRECTION;
}
Hotspot::~Hotspot() {