From 3b342a21c61010698e6b4829ed80857f06904ad9 Mon Sep 17 00:00:00 2001 From: uruk Date: Wed, 13 Aug 2014 17:39:09 +0200 Subject: [PATCH] CGE2: Eliminate inferred misuse of enums in Sprite::labVal(). --- engines/cge2/vga13h.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/cge2/vga13h.cpp b/engines/cge2/vga13h.cpp index 330883141d7..9141f426f3b 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; }