aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2
diff options
context:
space:
mode:
authoruruk2014-08-22 14:55:13 +0200
committeruruk2014-08-22 14:55:13 +0200
commit606f80ef3654f370f1d8dd60c5571fb1a51cae18 (patch)
tree287ad36be8641dad8318312fcc78f937cd8f2aa0 /engines/cge2
parente545a0afc432b19ebfe896ff6f535b3133d5402c (diff)
downloadscummvm-rg350-606f80ef3654f370f1d8dd60c5571fb1a51cae18.tar.gz
scummvm-rg350-606f80ef3654f370f1d8dd60c5571fb1a51cae18.tar.bz2
scummvm-rg350-606f80ef3654f370f1d8dd60c5571fb1a51cae18.zip
CGE2: Silence warning about uninitialized variable.
Diffstat (limited to 'engines/cge2')
-rw-r--r--engines/cge2/spare.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/cge2/spare.cpp b/engines/cge2/spare.cpp
index 53f99e4e67..76bdbfa7ef 100644
--- a/engines/cge2/spare.cpp
+++ b/engines/cge2/spare.cpp
@@ -30,8 +30,8 @@
namespace CGE2 {
void Spare::sync(Common::Serializer &s) {
+ int size = 0;
if (s.isSaving()) {
- int size = 0;
for (uint i = 0; i < _container.size(); i++)
if (_container[i]->_ref >= 141)
size++;
@@ -42,7 +42,6 @@ void Spare::sync(Common::Serializer &s) {
_container[i]->sync(s);
}
} else {
- int size;
s.syncAsSint16LE(size);
for (int i = 0; i < size; i++) {