From d21cef411721984d4c6cabc7df04cbab9b725978 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 13 Mar 2012 10:06:00 +0100 Subject: JANITORIAL: Avoid the ugly operator invocation syntax. --- engines/mohawk/myst_areas.cpp | 2 +- engines/mohawk/myst_scripts.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/mohawk') diff --git a/engines/mohawk/myst_areas.cpp b/engines/mohawk/myst_areas.cpp index fe33ceaa9b..a54b67bef4 100644 --- a/engines/mohawk/myst_areas.cpp +++ b/engines/mohawk/myst_areas.cpp @@ -134,7 +134,7 @@ const Common::String MystResourceType5::describe() { desc += " ops:"; for (uint i = 0; i < _script->size(); i++) - desc += " " + _vm->_scriptParser->getOpcodeDesc(_script->operator[](i).opcode); + desc += " " + _vm->_scriptParser->getOpcodeDesc((*_script)[i].opcode); } return desc; diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp index b9353312c7..107a8b03e9 100644 --- a/engines/mohawk/myst_scripts.cpp +++ b/engines/mohawk/myst_scripts.cpp @@ -161,7 +161,7 @@ void MystScriptParser::runScript(MystScript script, MystResource *invokingResour _vm->_gfx->enableDrawingTimeSimulation(true); for (uint16 i = 0; i < script->size(); i++) { - MystScriptEntry &entry = script->operator[](i); + MystScriptEntry &entry = (*script)[i]; debugC(kDebugScript, "\tOpcode %d: %d", i, entry.opcode); if (entry.type == kMystScriptNormal) @@ -207,7 +207,7 @@ MystScript MystScriptParser::readScript(Common::SeekableReadStream *stream, Myst script->resize(opcodeCount); for (uint16 i = 0; i < opcodeCount; i++) { - MystScriptEntry &entry = script->operator[](i); + MystScriptEntry &entry = (*script)[i]; entry.type = type; // Resource ID only exists in INIT and EXIT scripts -- cgit v1.2.3