diff options
author | Paul Gilbert | 2016-05-09 21:44:10 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:39:02 -0400 |
commit | 5bb05084fda4e1ce63bd29815ed0676adb1645ed (patch) | |
tree | 6c6872261f1e1e5f3557f21e15c0d95d73e09210 /engines | |
parent | 0820c3ffaee211270ab75a14cd1d42047354aa34 (diff) | |
download | scummvm-rg350-5bb05084fda4e1ce63bd29815ed0676adb1645ed.tar.gz scummvm-rg350-5bb05084fda4e1ce63bd29815ed0676adb1645ed.tar.bz2 scummvm-rg350-5bb05084fda4e1ce63bd29815ed0676adb1645ed.zip |
TITANIC: Fixes for TTString constructors
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/true_talk/tt_string.cpp | 11 |
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 { |