TSAGE: Silence another (incorrect but still annoying) uninitialized var warning

This commit is contained in:
Max Horn 2011-05-25 16:35:09 +02:00
parent b86da6028f
commit 7e5113b423

View File

@ -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);
}