diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index 1812051054f..bfa4f8687f1 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -1357,7 +1357,7 @@ void ScummEngine_v6::o6_setObjectName() { } } - error("New name of %d overflows name table (max = %d)", obj, 50); + error("New name of %d overflows name table (max = %d)", obj, _numNewNames); } void ScummEngine_v6::o6_isSoundRunning() {