mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
CGE2: Eliminate inferred misuse of enums in Sprite::labVal().
This commit is contained in:
parent
528ed79575
commit
3b342a21c6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user