aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/supernova/game-manager.cpp2
-rw-r--r--engines/supernova/supernova.cpp2
-rw-r--r--engines/supernova/supernova2/rooms.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/engines/supernova/game-manager.cpp b/engines/supernova/game-manager.cpp
index bf4cbc69c8..7e44882de2 100644
--- a/engines/supernova/game-manager.cpp
+++ b/engines/supernova/game-manager.cpp
@@ -834,7 +834,7 @@ void GameManager::edit(Common::String &input, int x, int y, uint length) {
bool isEditing = true;
uint cursorIndex = input.size();
// NOTE: Pixels for char needed = kFontWidth + 2px left and right side bearing
- int overdrawWidth;
+ int overdrawWidth = 0;
Color background = kColorBlack;
if (_vm->_MSPart == 1) {
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index b8c9adbec0..41f05edb7e 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -475,7 +475,7 @@ Common::SeekableReadStream *SupernovaEngine::getBlockFromDatFile(Common::String
return nullptr;
}
- uint32 gameBlockSize;
+ uint32 gameBlockSize = 0;
while (!f.eos()) {
int part = f.readByte();
gameBlockSize = f.readUint32LE();
diff --git a/engines/supernova/supernova2/rooms.cpp b/engines/supernova/supernova2/rooms.cpp
index b058f047cc..cc4ab858b4 100644
--- a/engines/supernova/supernova2/rooms.cpp
+++ b/engines/supernova/supernova2/rooms.cpp
@@ -3582,7 +3582,7 @@ bool BstDoor::interact(Action verb, Object &obj1, Object &obj2) {
_vm->renderImage(number);
_vm->playSound(kAudioTaxiOpen);
for (number = 1; number <= 16; number++) {
- if (isSectionVisible(number) != _password[number - 1])
+ if (isSectionVisible(number) != (bool)_password[number - 1])
return true;
}
_gm->wait(2);