aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/titanic/true_talk/tt_concept.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/titanic/true_talk/tt_concept.cpp b/engines/titanic/true_talk/tt_concept.cpp
index 9aad88722b..b8204baab8 100644
--- a/engines/titanic/true_talk/tt_concept.cpp
+++ b/engines/titanic/true_talk/tt_concept.cpp
@@ -213,11 +213,9 @@ void TTconcept::copyFrom(TTconcept *src) {
}
int TTconcept::setOwner(TTconcept *src) {
- if (this) {
- if (src->_wordP) {
- TTword *newWord = src->_wordP->copy();
- return setOwner(newWord, 1);
- }
+ if (src->_wordP) {
+ TTword *newWord = src->_wordP->copy();
+ return setOwner(newWord, 1);
}
return 0;
@@ -302,7 +300,7 @@ bool TTconcept::isWordId(int id) const {
}
int TTconcept::getWordId() const {
- return this && _wordP ? _wordP->_id : 0;
+ return _wordP ? _wordP->_id : 0;
}
} // End of namespace Titanic