diff options
author | uruk | 2014-08-13 17:39:09 +0200 |
---|---|---|
committer | uruk | 2014-08-13 17:39:09 +0200 |
commit | 3b342a21c61010698e6b4829ed80857f06904ad9 (patch) | |
tree | f8dc1860886767f4466c97315615f6fdc66bba62 /engines/cge2 | |
parent | 528ed79575d9086bc61f3f9507567f38b1e05c9b (diff) | |
download | scummvm-rg350-3b342a21c61010698e6b4829ed80857f06904ad9.tar.gz scummvm-rg350-3b342a21c61010698e6b4829ed80857f06904ad9.tar.bz2 scummvm-rg350-3b342a21c61010698e6b4829ed80857f06904ad9.zip |
CGE2: Eliminate inferred misuse of enums in Sprite::labVal().
Diffstat (limited to 'engines/cge2')
-rw-r--r-- | engines/cge2/vga13h.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cge2/vga13h.cpp b/engines/cge2/vga13h.cpp index 330883141d..9141f426f3 100644 --- a/engines/cge2/vga13h.cpp +++ b/engines/cge2/vga13h.cpp @@ -252,7 +252,7 @@ int Sprite::labVal(Action snq, int lab) { error("Bad SPR [%s]", tmpStr); int cnt = 0; - int section = kIdPhase; + ID section = kIdPhase; ID id; Common::String line; @@ -267,7 +267,7 @@ int Sprite::labVal(Action snq, int lab) { p = _vm->token(tmpStr); if (*p == '@') { - if (section == snq && atoi(p + 1) == lab) + if ((int)section == (int)snq && atoi(p + 1) == lab) lv = cnt; } else { id = _vm->ident(p); @@ -280,7 +280,7 @@ int Sprite::labVal(Action snq, int lab) { section = id; break; default: - if (id < 0 && section == snq) + if (id < 0 && (int)section == (int)snq) ++cnt; break; } |