aboutsummaryrefslogtreecommitdiff
path: root/scummvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scummvm.cpp')
-rw-r--r--scummvm.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/scummvm.cpp b/scummvm.cpp
index bfc430720d..a7201ee939 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -902,9 +902,8 @@ void Scumm::convertKeysToClicks()
Actor *Scumm::derefActorSafe(int id, const char *errmsg)
{
if (id < 1 || id >= NUM_ACTORS) {
- warning
- ("Invalid actor %d in %s (script %d, opcode 0x%x) - This is potentially a BIG problem.",
- id, errmsg, vm.slot[_curExecScript].number, _opcode);
+ if (_debugMode)
+ warning("Invalid actor %d in %s (script %d, opcode 0x%x) - This is potentially a BIG problem.", id, errmsg, vm.slot[_curExecScript].number, _opcode);
return NULL;
}
return derefActor(id);