From 5bb05084fda4e1ce63bd29815ed0676adb1645ed Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 9 May 2016 21:44:10 -0400 Subject: TITANIC: Fixes for TTString constructors --- engines/titanic/true_talk/tt_string.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'engines') 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 { -- cgit v1.2.3