diff options
Diffstat (limited to 'engines/fullpipe/scene.cpp')
-rw-r--r-- | engines/fullpipe/scene.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp index 46ad205278..6295e3b2d6 100644 --- a/engines/fullpipe/scene.cpp +++ b/engines/fullpipe/scene.cpp @@ -61,9 +61,8 @@ bool SceneTagList::load(MfcArchive &file) { int numEntries = file.readUint16LE(); for (int i = 0; i < numEntries; i++) { - SceneTag *t = new SceneTag(); - t->load(file); - push_back(*t); + push_back(SceneTag()); + back().load(file); } return true; |