diff options
author | Eugene Sandulenko | 2016-06-08 15:48:00 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-06-10 14:12:27 +0200 |
commit | 455d433afd2ab8018a8ceca42fb91e9a517fcea3 (patch) | |
tree | a720ef49ccd415fb207d852218e6ae2cd15a048b /engines/toltecs | |
parent | c3311473a77e08e64ff5e77ecfb7b3d2c8505134 (diff) | |
download | scummvm-rg350-455d433afd2ab8018a8ceca42fb91e9a517fcea3.tar.gz scummvm-rg350-455d433afd2ab8018a8ceca42fb91e9a517fcea3.tar.bz2 scummvm-rg350-455d433afd2ab8018a8ceca42fb91e9a517fcea3.zip |
TOLTECS: Initialize objects
Diffstat (limited to 'engines/toltecs')
-rw-r--r-- | engines/toltecs/segmap.cpp | 4 | ||||
-rw-r--r-- | engines/toltecs/segmap.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/toltecs/segmap.cpp b/engines/toltecs/segmap.cpp index b27e0c8e11..399a044d5d 100644 --- a/engines/toltecs/segmap.cpp +++ b/engines/toltecs/segmap.cpp @@ -27,6 +27,10 @@ namespace Toltecs { SegmentMap::SegmentMap(ToltecsEngine *vm) : _vm(vm) { + _maskRectData = NULL; + memset(_deadEndPathRects, 0, sizeof(_closedPathRects)); + _closedPathRectsCount = 0; + _pathNodesCount = 0; } SegmentMap::~SegmentMap() { diff --git a/engines/toltecs/segmap.h b/engines/toltecs/segmap.h index c1ad293162..03bd858217 100644 --- a/engines/toltecs/segmap.h +++ b/engines/toltecs/segmap.h @@ -80,6 +80,8 @@ public: // for debugging purposes struct PathPoint { int16 y, x; + + PathPoint() : x(0), y(0) {} }; typedef Common::Array<SegmapMaskRect> SegmapMaskRectArray; |