diff options
author | Strangerke | 2014-05-19 22:21:58 +0200 |
---|---|---|
committer | Strangerke | 2014-05-19 22:21:58 +0200 |
commit | 9613db3edf71787eb211076081281a9bc5c2f6ba (patch) | |
tree | 82c90f6adad021e9303a906be513a219f68db308 /engines | |
parent | 081a7ee30cfdf8a29f0cd896eef18b838dd154f8 (diff) | |
download | scummvm-rg350-9613db3edf71787eb211076081281a9bc5c2f6ba.tar.gz scummvm-rg350-9613db3edf71787eb211076081281a9bc5c2f6ba.tar.bz2 scummvm-rg350-9613db3edf71787eb211076081281a9bc5c2f6ba.zip |
MADS: Reduce the scope of a variable in Resource
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/resources.cpp | 2 |
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; |