aboutsummaryrefslogtreecommitdiff
path: root/scumm/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r--scumm/object.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp
index 8a305a127b..adaecfc2ed 100644
--- a/scumm/object.cpp
+++ b/scumm/object.cpp
@@ -925,15 +925,6 @@ void ScummEngine::setObjectName(int obj) {
if (obj < _numActors)
error("Can't set actor %d name with new-name-of", obj);
- const byte *objptr = getOBCDFromObject(obj);
- if (_version <= 5 && !objptr) {
- // WORKAROUND bug #587553 and possibly other related script bug.
- // We do not error out but rather just generate a warning.
- debug(2, "Can't find OBCD to rename object %d", obj);
- return;
- } else if (_version == 6 && !objptr)
- error("Can't set name of object %d", obj);
-
for (i = 0; i < _numNewNames; i++) {
if (_newNames[i] == obj) {
nukeResource(rtObjectName, i);