aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
authorBastien Bouclet2017-09-20 19:01:51 +0200
committerBastien Bouclet2017-09-22 07:06:21 +0200
commit3eb82462e772832a902ba336b680e2a961339ee1 (patch)
treec0499005e4f806cfe7ba2d21d9d633e01bbf65dc /engines/pegasus
parent1b3cc08b75c56a06cfa90edaf1b0da181d40ddcc (diff)
downloadscummvm-rg350-3eb82462e772832a902ba336b680e2a961339ee1.tar.gz
scummvm-rg350-3eb82462e772832a902ba336b680e2a961339ee1.tar.bz2
scummvm-rg350-3eb82462e772832a902ba336b680e2a961339ee1.zip
ALL: Specify the DisposeAfterUse constructor argument for dynamic memory write streams
Diffstat (limited to 'engines/pegasus')
-rw-r--r--engines/pegasus/ai/ai_area.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pegasus/ai/ai_area.cpp b/engines/pegasus/ai/ai_area.cpp
index c078d5e80e..58698e6c77 100644
--- a/engines/pegasus/ai/ai_area.cpp
+++ b/engines/pegasus/ai/ai_area.cpp
@@ -78,7 +78,7 @@ void AIArea::saveAIState() {
delete vm->_aiSaveStream;
- Common::MemoryWriteStreamDynamic out;
+ Common::MemoryWriteStreamDynamic out(DisposeAfterUse::NO);
writeAIRules(&out);
vm->_aiSaveStream = new Common::MemoryReadStream(out.getData(), out.size(), DisposeAfterUse::YES);