aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorMax Horn2003-06-22 22:34:25 +0000
committerMax Horn2003-06-22 22:34:25 +0000
commit2e634be4e969c74572e3147fcc23dcf2f2c86c9b (patch)
tree61b242e578205789deb91bcffcc120e412940d6a /sky
parent976e5c598b9fd41be1b080d67588955b19b4b5bb (diff)
downloadscummvm-rg350-2e634be4e969c74572e3147fcc23dcf2f2c86c9b.tar.gz
scummvm-rg350-2e634be4e969c74572e3147fcc23dcf2f2c86c9b.tar.bz2
scummvm-rg350-2e634be4e969c74572e3147fcc23dcf2f2c86c9b.zip
fixed warnings
svn-id: r8636
Diffstat (limited to 'sky')
-rw-r--r--sky/control.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sky/control.cpp b/sky/control.cpp
index 491cd2d4da..940c109987 100644
--- a/sky/control.cpp
+++ b/sky/control.cpp
@@ -496,7 +496,7 @@ uint16 SkyControl::saveRestorePanel(bool allowEdit) {
bool quitPanel = false;
bool refreshNames = true;
- uint16 clickRes;
+ uint16 clickRes = 0;
while (!quitPanel) {
if (refreshNames) {
showSprites(textSprites);
@@ -513,7 +513,7 @@ uint16 SkyControl::saveRestorePanel(bool allowEdit) {
quitPanel = true;
}
bool haveButton = false;
- for (uint16 cnt = 0; cnt < 6; cnt++)
+ for (cnt = 0; cnt < 6; cnt++)
if (lookList[cnt]->isMouseOver(_mouseX, _mouseY)) {
buttonControl(lookList[cnt]);
haveButton = true;
@@ -586,7 +586,8 @@ void SkyControl::loadSaveDescriptions(uint8 *destBuf) {
for (uint16 cnt = 0; cnt < MAX_SAVE_GAMES; cnt++) {
sprintf((char*)destPos,"%3d: ", cnt + 1);
uint8 nameCnt = 0;
- while (destPos[nameCnt + 5] = inPos[nameCnt]) nameCnt++;
+ while ((destPos[nameCnt + 5] = inPos[nameCnt]))
+ nameCnt++;
destPos += MAX_TEXT_LEN;
}
free(tmpBuf);