aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/macventure/text.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/macventure/text.cpp b/engines/macventure/text.cpp
index d3fc956b93..cf7402822d 100644
--- a/engines/macventure/text.cpp
+++ b/engines/macventure/text.cpp
@@ -203,8 +203,12 @@ Common::String TextAsset::getNoun(ObjID subval) {
break;
}
}
- if (name.size() && (subval & 4))
- name.toUppercase(); // HACK, should only capitalize first char?
+ if (name.size() && (subval & 4)) {
+ Common::String tmp = name;
+ name.toUppercase();
+ name.replace(1, name.size() - 1, tmp, 1, tmp.size() - 1);
+ }
+
return name;
}