mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 08:40:59 +00:00
TSAGE: Silence another (incorrect but still annoying) uninitialized var warning
This commit is contained in:
parent
b86da6028f
commit
7e5113b423
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user