diff options
Diffstat (limited to 'engines/wage/entities.cpp')
-rw-r--r-- | engines/wage/entities.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/wage/entities.cpp b/engines/wage/entities.cpp index 64e919b978..8472e7844b 100644 --- a/engines/wage/entities.cpp +++ b/engines/wage/entities.cpp @@ -432,14 +432,11 @@ int Chr::wearObjIfPossible(Obj *obj) { return -1; } -String &Chr::getNameWithDefiniteArticle(bool capitalize) { - Common::String *res = new Common::String; - +const char *Chr::getDefiniteArticle(bool capitalize) { if (!_nameProperNoun) - *res += capitalize ? "The " : "the "; - *res += _name; + return capitalize ? "The " : "the "; - return *res; + return ""; } |