diff options
author | Strangerke | 2014-06-03 17:39:10 +0200 |
---|---|---|
committer | Strangerke | 2014-06-03 17:39:10 +0200 |
commit | de8affdec579542767cfd827f2dd19a035319d65 (patch) | |
tree | b0df99654136d25068370dafb8cc63bdab9485f8 /engines/cge2/cge2_main.cpp | |
parent | 7ef509608e957cb62cda7265e173f1a30a69b659 (diff) | |
download | scummvm-rg350-de8affdec579542767cfd827f2dd19a035319d65.tar.gz scummvm-rg350-de8affdec579542767cfd827f2dd19a035319d65.tar.bz2 scummvm-rg350-de8affdec579542767cfd827f2dd19a035319d65.zip |
CGE2: Silence some gcc warnings
Diffstat (limited to 'engines/cge2/cge2_main.cpp')
-rw-r--r-- | engines/cge2/cge2_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp index e379977d6c..4fb0b2981e 100644 --- a/engines/cge2/cge2_main.cpp +++ b/engines/cge2/cge2_main.cpp @@ -179,7 +179,7 @@ void CGE2Engine::loadSprite(const char *fname, int ref, int scene, V3D &pos) { case kIdNear: case kIdMTake: case kIdFTake: - if (_commandHandler->com(p) >= 0) + if (_commandHandler->getComId(p) >= 0) ++cnt[section]; else error("Bad line %d [%s]", sprf.getLineCount(), tmpStr); @@ -818,7 +818,7 @@ Sprite *CGE2Engine::spriteAt(int x, int y) { if (tail) { for (spr = tail->_prev; spr; spr = spr->_prev) { if (!spr->_flags._hide && !spr->_flags._tran) { - if (spr->shp()->solidAt(x - spr->_pos2D.x, y - spr->_pos2D.y)) + if (spr->getShp()->solidAt(x - spr->_pos2D.x, y - spr->_pos2D.y)) break; } } |