aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agi/predictive.cpp2
-rw-r--r--engines/cine/anim.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/predictive.cpp b/engines/agi/predictive.cpp
index 0eb0b2e032..21f9256e70 100644
--- a/engines/agi/predictive.cpp
+++ b/engines/agi/predictive.cpp
@@ -555,7 +555,7 @@ bool AgiEngine::matchWord(void) {
return false;
}
// Lookup word in the dictionary
- int line = 0, cmpRes, len;
+ int line = 0, cmpRes = 0, len = 0;
char target[MAXWORDLEN];
strncpy(target, _currentCode.c_str(), MAXWORDLEN);
diff --git a/engines/cine/anim.cpp b/engines/cine/anim.cpp
index 01269d7577..312de4a6db 100644
--- a/engines/cine/anim.cpp
+++ b/engines/cine/anim.cpp
@@ -780,7 +780,7 @@ void loadResourcesFromSave(Common::InSaveFile &fHandle, bool broken) {
int8 isMask = 0, isSpl = 0;
byte *dataPtr, *ptr;
char *animName, part[256];
- byte transparentColor;
+ byte transparentColor = 0;
AnimData *currentPtr;
AnimHeaderStruct animHeader;