aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/true_talk/tt_string.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/engines/titanic/true_talk/tt_string.cpp b/engines/titanic/true_talk/tt_string.cpp
index 2308afa75d..a41f0ced5f 100644
--- a/engines/titanic/true_talk/tt_string.cpp
+++ b/engines/titanic/true_talk/tt_string.cpp
@@ -33,17 +33,12 @@ TTString::TTString(const char *str) : _status(SS_VALID) {
}
TTString::TTString(const CString &str) {
- if (_status != SS_VALID) {
- _status = SS_5;
- _data = nullptr;
- } else {
- _status = SS_VALID;
- _data = new TTStringData(str);
- }
+ _status = SS_VALID;
+ _data = new TTStringData(str);
}
TTString::TTString(TTString &str) {
- if (_status != SS_VALID) {
+ if (str._status != SS_VALID) {
_status = SS_5;
_data = nullptr;
} else {