[Scummvm-cvs-logs] scummvm master -> 606f80ef3654f370f1d8dd60c5571fb1a51cae18
urukgit
urukgit at users.noreply.github.com
Sat Aug 23 09:55:20 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
606f80ef36 CGE2: Silence warning about uninitialized variable.
Commit: 606f80ef3654f370f1d8dd60c5571fb1a51cae18
https://github.com/scummvm/scummvm/commit/606f80ef3654f370f1d8dd60c5571fb1a51cae18
Author: uruk (koppirnyo at gmail.com)
Date: 2014-08-22T14:55:13+02:00
Commit Message:
CGE2: Silence warning about uninitialized variable.
Changed paths:
engines/cge2/spare.cpp
diff --git a/engines/cge2/spare.cpp b/engines/cge2/spare.cpp
index 53f99e4..76bdbfa 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++) {
More information about the Scummvm-git-logs
mailing list