aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mads/resources.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/resources.cpp b/engines/mads/resources.cpp
index 4f5596dea6..83077b602f 100644
--- a/engines/mads/resources.cpp
+++ b/engines/mads/resources.cpp
@@ -410,13 +410,13 @@ void SynchronizedList::synchronize(Common::Serializer &s) {
void synchronizeString(Common::Serializer &s, Common::String &str) {
int len = str.size();
- char c;
s.syncAsUint16LE(len);
if (s.isSaving()) {
s.syncBytes((byte *)str.c_str(), len);
} else {
str.clear();
+ char c;
for (int i = 0; i < len; ++i) {
s.syncAsByte(c);
str += c;