diff options
author | Eugene Sandulenko | 2006-11-22 15:50:30 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-11-22 15:50:30 +0000 |
commit | cfb29dcb5199922e40e08b7cdc6502478782006c (patch) | |
tree | 6781796da6f3dbe145425b59cf90354c250982d6 /engines/agos | |
parent | 1076ae02ea84fa4795871e10e366ec6fbeed4d83 (diff) | |
download | scummvm-rg350-cfb29dcb5199922e40e08b7cdc6502478782006c.tar.gz scummvm-rg350-cfb29dcb5199922e40e08b7cdc6502478782006c.tar.bz2 scummvm-rg350-cfb29dcb5199922e40e08b7cdc6502478782006c.zip |
Fix MSVC2005 warnings. Please, review the changes.
svn-id: r24760
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/contain.cpp | 2 | ||||
-rw-r--r-- | engines/agos/menus.cpp | 2 | ||||
-rw-r--r-- | engines/agos/vga_s1.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/agos/contain.cpp b/engines/agos/contain.cpp index 0362580e11..4b02017bea 100644 --- a/engines/agos/contain.cpp +++ b/engines/agos/contain.cpp @@ -34,7 +34,7 @@ int AGOSEngine::canPlace(Item *x, Item *y) { if (getGameType() == GType_ELVIRA1) { SubPlayer *p = (SubPlayer *)findChildOfType(y, 3); SubContainer *c = (SubContainer *)findChildOfType(y, 7); - int cap; + int cap = 0; int wt; if ((c == NULL) && (p == NULL)) diff --git a/engines/agos/menus.cpp b/engines/agos/menus.cpp index ff86a05724..45aab9ee7b 100644 --- a/engines/agos/menus.cpp +++ b/engines/agos/menus.cpp @@ -128,7 +128,7 @@ void AGOSEngine::lightMenuStrip(int a) { unlightMenuStrip(); for (int i = 120; i != 130; i++) { - if (a & (1 << i - 120)) { + if (a & ((1 << i) - 120)) { enableBox(i); lightMenuBox(i); } diff --git a/engines/agos/vga_s1.cpp b/engines/agos/vga_s1.cpp index fb3a80f1e9..c467ca7632 100644 --- a/engines/agos/vga_s1.cpp +++ b/engines/agos/vga_s1.cpp @@ -60,8 +60,8 @@ void AGOSEngine::vc17_setPathfinderItem() { } void AGOSEngine::vc22_setPaletteNew() { - byte *offs, *palptr, *src; - uint16 a = 0, b, num, palSize; + byte *offs, *palptr = 0, *src; + uint16 a = 0, b, num = 1, palSize = 0; a = vcReadNextWord(); b = vcReadNextWord(); |