aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/hotspots.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/hotspots.h')
-rw-r--r--engines/lure/hotspots.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/lure/hotspots.h b/engines/lure/hotspots.h
index fcbaae1a13..c6bc56a94d 100644
--- a/engines/lure/hotspots.h
+++ b/engines/lure/hotspots.h
@@ -112,7 +112,8 @@ class PathFinder {
private:
Hotspot *_hotspot;
bool _inUse;
- ManagedList<WalkingActionEntry *> _list;
+ typedef Common::List<Common::SharedPtr<WalkingActionEntry> > WalkingActionList;
+ WalkingActionList _list;
RoomPathsDecompressedData _layer;
int _stepCtr;
bool _inProgress;
@@ -134,10 +135,10 @@ private:
void scanLine(int numScans, int changeAmount, uint16 *&pEnd, int &v);
void add(Direction dir, int steps) {
- _list.push_front(new WalkingActionEntry(dir, steps));
+ _list.push_front(WalkingActionList::value_type(new WalkingActionEntry(dir, steps)));
}
void addBack(Direction dir, int steps) {
- _list.push_back(new WalkingActionEntry(dir, steps));
+ _list.push_back(WalkingActionList::value_type(new WalkingActionEntry(dir, steps)));
}
public:
PathFinder(Hotspot *h);
@@ -470,7 +471,7 @@ public:
void loadFromStream(Common::ReadStream *stream);
};
-class HotspotList: public ManagedList<Hotspot *> {
+class HotspotList: public Common::List<Common::SharedPtr<Hotspot> > {
public:
void saveToStream(WriteStream *stream);
void loadFromStream(ReadStream *stream);