diff options
author | Max Horn | 2011-05-25 16:35:09 +0200 |
---|---|---|
committer | Max Horn | 2011-05-25 16:35:09 +0200 |
commit | 7e5113b4230d2186a85e2e5ef0920d9d7e753c6d (patch) | |
tree | f841466f20c3aa4e3dba3b4f9f934b299f33b99d /engines | |
parent | b86da6028fd702cd2a3f0c278d1b372135208ad3 (diff) | |
download | scummvm-rg350-7e5113b4230d2186a85e2e5ef0920d9d7e753c6d.tar.gz scummvm-rg350-7e5113b4230d2186a85e2e5ef0920d9d7e753c6d.tar.bz2 scummvm-rg350-7e5113b4230d2186a85e2e5ef0920d9d7e753c6d.zip |
TSAGE: Silence another (incorrect but still annoying) uninitialized var warning
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/saveload.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/tsage/saveload.cpp b/engines/tsage/saveload.cpp index 6ae62568a3..56df32146a 100644 --- a/engines/tsage/saveload.cpp +++ b/engines/tsage/saveload.cpp @@ -64,14 +64,12 @@ Saver::~Saver() { void Serializer::syncPointer(SavedObject **ptr, Common::Serializer::Version minVersion, Common::Serializer::Version maxVersion) { - int idx; + int idx = 0; assert(ptr); if (isSaving()) { // Get the object index for the given pointer and write it out - if (!*ptr) { - idx = 0; - } else { + if (*ptr) { idx = _saver->blockIndexOf(*ptr); assert(idx > 0); } |