From 20d75f6ec75b112a1aae4353b9ada019e1f437f3 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Fri, 12 Jun 2009 10:26:15 +0000 Subject: Added missing return statements. svn-id: r41473 --- engines/kyra/script.cpp | 12 +++++++----- engines/kyra/script_tim.cpp | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/engines/kyra/script.cpp b/engines/kyra/script.cpp index 0a60c9d154..0473f03591 100644 --- a/engines/kyra/script.cpp +++ b/engines/kyra/script.cpp @@ -98,6 +98,8 @@ bool EMCInterpreter::callback(Common::IFFChunk &chunk) { default: warning("Unexpected chunk '%s' of size %d found in file '%s'", Common::ID2string(chunk._type), chunk._size, _filename); } + + return false; } bool EMCInterpreter::load(const char *filename, EMCData *scriptData, const Common::Array *opcodes) { @@ -116,10 +118,10 @@ bool EMCInterpreter::load(const char *filename, EMCData *scriptData, const Commo Common::Functor1Mem< Common::IFFChunk &, bool, EMCInterpreter > c(this, &EMCInterpreter::callback); iff.parse(c); - if (!scriptData->ordr) + if (!_scriptData->ordr) error("No ORDR chunk found in file: '%s'", filename); - if (!scriptData->data) + if (!_scriptData->data) error("No DATA chunk found in file: '%s'", filename); if (stream->err()) @@ -127,10 +129,10 @@ bool EMCInterpreter::load(const char *filename, EMCData *scriptData, const Commo delete stream; - scriptData->sysFuncs = opcodes; + _scriptData->sysFuncs = opcodes; - strncpy(scriptData->filename, filename, 13); - scriptData->filename[12] = 0; + strncpy(_scriptData->filename, filename, 13); + _scriptData->filename[12] = 0; return true; } diff --git a/engines/kyra/script_tim.cpp b/engines/kyra/script_tim.cpp index ff82ceb1e5..5953374d41 100644 --- a/engines/kyra/script_tim.cpp +++ b/engines/kyra/script_tim.cpp @@ -140,6 +140,7 @@ bool TIMInterpreter::callback(Common::IFFChunk &chunk) { warning("Unexpected chunk '%s' of size %d found in file '%s'", Common::ID2string(chunk._type), chunk._size, _filename); } + return false; } TIM *TIMInterpreter::load(const char *filename, const Common::Array *opcodes) { -- cgit v1.2.3