aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/map_v2.cpp
diff options
context:
space:
mode:
authorSven Hesse2010-10-30 17:26:49 +0000
committerSven Hesse2010-10-30 17:26:49 +0000
commitbfa88a05a153ec7c91d0b2e79c9f5705c9ba55ed (patch)
tree25cfe816b1e1bf2cd5f8c7f989de829f6c36e8a5 /engines/gob/map_v2.cpp
parent4c23f3e1631ed904fa67b77b964e73aae4873850 (diff)
downloadscummvm-rg350-bfa88a05a153ec7c91d0b2e79c9f5705c9ba55ed.tar.gz
scummvm-rg350-bfa88a05a153ec7c91d0b2e79c9f5705c9ba55ed.tar.bz2
scummvm-rg350-bfa88a05a153ec7c91d0b2e79c9f5705c9ba55ed.zip
GOB: Make Map::_wayPoints protected
Only allow const access through Map::getWayPoint() svn-id: r53949
Diffstat (limited to 'engines/gob/map_v2.cpp')
-rw-r--r--engines/gob/map_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/map_v2.cpp b/engines/gob/map_v2.cpp
index 7460128ca9..968663a4b4 100644
--- a/engines/gob/map_v2.cpp
+++ b/engines/gob/map_v2.cpp
@@ -138,7 +138,7 @@ void Map_v2::loadMapObjects(const char *avjFile) {
wayPointsCount = _wayPointCount == 0 ? 1 : _wayPointCount;
delete[] _wayPoints;
- _wayPoints = new Point[wayPointsCount];
+ _wayPoints = new WayPoint[wayPointsCount];
for (int i = 0; i < _wayPointCount; i++) {
_wayPoints[i].x = mapData.readSByte();
_wayPoints[i].y = mapData.readSByte();