Skip to content

Commit 909a09d

Browse files
committed
sentence: Fix SetTextFromWords appends " " after last word, but it should not
1 parent 687066f commit 909a09d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/sentence.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,8 @@ void CSentence::SetTextFromWords( void )
13511351
{
13521352
V_strcat_safe( fulltext, word->GetWord() );
13531353

1354-
if ( i != m_Words.Count() )
1354+
// dimhptepus: Correctly append " " between words, but not after last one.
1355+
if ( i != m_Words.Count() - 1 )
13551356
{
13561357
V_strcat_safe( fulltext, " " );
13571358
}

0 commit comments

Comments
 (0)