SCI: Making various object and script related things const

svn-id: r49246
This commit is contained in:
Max Horn 2010-05-26 16:30:10 +00:00
parent 017507ffa6
commit 0197e9f6a1
11 changed files with 104 additions and 97 deletions

View file

@ -266,7 +266,7 @@ SciVersion GameFeatures::detectLofsType() {
// Find a function of the game object which invokes lofsa/lofss
reg_t gameClass = _segMan->findObjectByName("Game");
Object *obj = _segMan->getObject(gameClass);
const Object *obj = _segMan->getObject(gameClass);
bool found = false;
for (uint m = 0; m < obj->getMethodCount(); m++) {
@ -343,7 +343,7 @@ SciVersion GameFeatures::detectGfxFunctionsType() {
// No overlay selector found, check if any method of the Rm object
// is calling kDrawPic, as the overlay selector might be missing in demos
Object *obj = _segMan->getObject(_segMan->findObjectByName("Rm"));
const Object *obj = _segMan->getObject(_segMan->findObjectByName("Rm"));
for (uint m = 0; m < obj->getMethodCount(); m++) {
found = autoDetectGfxFunctionsType(m);
if (found)