aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/objects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sherlock/objects.cpp')
-rw-r--r--engines/sherlock/objects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp
index 8c8d90579c..49f64c85b0 100644
--- a/engines/sherlock/objects.cpp
+++ b/engines/sherlock/objects.cpp
@@ -828,7 +828,7 @@ int Object::checkNameForCodes(const Common::String &name, const char *const mess
if (name.hasPrefix("*")) {
// A code was found
printed = true;
- ch = toupper(name[1]);
+ ch = (name == "*") ? 0 : toupper(name[1]);
switch (ch) {
case 'C':