diff options
author | Bastien Bouclet | 2017-09-20 19:01:51 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-09-22 07:06:21 +0200 |
commit | 3eb82462e772832a902ba336b680e2a961339ee1 (patch) | |
tree | c0499005e4f806cfe7ba2d21d9d633e01bbf65dc /engines/pegasus | |
parent | 1b3cc08b75c56a06cfa90edaf1b0da181d40ddcc (diff) | |
download | scummvm-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.cpp | 2 |
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); |