From d0209228467f548e748146e1c72e72ac9cccc89f Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 17 May 2011 15:50:11 +0200 Subject: SCUMM: Make REDUCE_MEMORY_USAGE slightly more effecive (saving ~1kb ram) --- engines/scumm/script.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/scumm/script.cpp') diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp index cd9a0ed1c8..cfc4b3c419 100644 --- a/engines/scumm/script.cpp +++ b/engines/scumm/script.cpp @@ -494,7 +494,11 @@ void ScummEngine::executeOpcode(byte i) { } const char *ScummEngine::getOpcodeDesc(byte i) { +#ifndef REDUCE_MEMORY_USAGE return _opcodes[i].desc; +#else + return ""; +#endif } byte ScummEngine::fetchScriptByte() { -- cgit v1.2.3