diff options
Diffstat (limited to 'engines/sword25/input')
-rw-r--r-- | engines/sword25/input/inputengine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/input/inputengine.cpp b/engines/sword25/input/inputengine.cpp index 7c110a92bb..8dc98ba3fb 100644 --- a/engines/sword25/input/inputengine.cpp +++ b/engines/sword25/input/inputengine.cpp @@ -243,13 +243,13 @@ bool InputEngine::persist(OutputPersistenceBlock &writer) { // Note: We do this only for compatibility with older engines resp. // the original engine. writer.write((uint)1); - writer.write(Common::String("LuaCommandCB")); + writer.writeString("LuaCommandCB"); // Write out the number of command callbacks and their names. // Note: We do this only for compatibility with older engines resp. // the original engine. writer.write((uint)1); - writer.write(Common::String("LuaCharacterCB")); + writer.writeString("LuaCharacterCB"); return true; } @@ -264,7 +264,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) { reader.read(commandCallbackCount); assert(commandCallbackCount == 1); - reader.read(callbackFunctionName); + reader.readString(callbackFunctionName); assert(callbackFunctionName == "LuaCommandCB"); // Read number of character callbacks and their names. @@ -274,7 +274,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) { reader.read(characterCallbackCount); assert(characterCallbackCount == 1); - reader.read(callbackFunctionName); + reader.readString(callbackFunctionName); assert(callbackFunctionName == "LuaCharacterCB"); return reader.isGood(); |