aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/script
diff options
context:
space:
mode:
authorMax Horn2010-10-28 00:26:25 +0000
committerMax Horn2010-10-28 00:26:25 +0000
commitb2fa7e58a395b883e7c59ecb1f29f8fc6607885b (patch)
tree01e5d568b0d7fe4b42b0abca5c1f0fa80654e196 /engines/sword25/script
parentcf3551525f4583ec8a5feb231cb25d81a9722853 (diff)
downloadscummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.tar.gz
scummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.tar.bz2
scummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.zip
SWORD25: Start to rename read/write methods of *PersistenceBlock classes
All should be renamed to reduce risk of accidental incorrect use. svn-id: r53899
Diffstat (limited to 'engines/sword25/script')
-rw-r--r--engines/sword25/script/luascript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/script/luascript.cpp b/engines/sword25/script/luascript.cpp
index ad5fad1322..aa2bdb9e06 100644
--- a/engines/sword25/script/luascript.cpp
+++ b/engines/sword25/script/luascript.cpp
@@ -419,7 +419,7 @@ bool LuaScriptEngine::persist(OutputPersistenceBlock &writer) {
pluto_persist(_state, chunkwriter, &chunkData);
// Persistenzdaten in den Writer schreiben.
- writer.write(chunkData);
+ writer.writeByteArray(chunkData);
// Die beiden Tabellen vom Stack nehmen.
lua_pop(_state, 2);
@@ -516,7 +516,7 @@ bool LuaScriptEngine::unpersist(InputPersistenceBlock &reader) {
// Persisted Lua data
Common::Array<byte> chunkData;
- reader.read(chunkData);
+ reader.readByteArray(chunkData);
// Chunk-Reader initialisation. It is used with pluto_unpersist to restore read data
ChunkreaderData cd;