TSAGE: Work around some uninitialized use warnings

They were false positives, but easy to work around.
This commit is contained in:
Willem Jan Palenstijn 2011-11-27 13:59:10 +01:00
parent 6a9ab747f9
commit 5518721a17
3 changed files with 3 additions and 3 deletions

View File

@ -4350,7 +4350,7 @@ void Scene360::Action1::signal() {
void Scene360::synchronize(Serializer &s) {
SceneExt::synchronize(s);
if (s.getVersion() < 9) {
int tmpVar;
int tmpVar = 0;
s.syncAsSint16LE(tmpVar);
}
}

View File

@ -3710,7 +3710,7 @@ int WalkRegions::indexOf(const Common::Point &pt, const Common::List<int> *index
void WalkRegions::synchronize(Serializer &s) {
// Synchronise the list of disabled regions as a list of values terminated with a '-1'
int regionId;
int regionId = 0;
if (s.isLoading()) {
_disabledRegions.clear();

View File

@ -230,7 +230,7 @@ void BlueForceGlobals::synchronize(Serializer &s) {
s.syncAsSint16LE(_dayNumber);
if (s.getVersion() < 9) {
int tmpVar;
int tmpVar = 0;
s.syncAsSint16LE(tmpVar);
}
s.syncAsSint16LE(_tonyDialogCtr);