From 2bfa3e28c949f23813ba9aaa5bb2731b1cb70ecc Mon Sep 17 00:00:00 2001 From: Thibaut Spreux Date: Mon, 10 Feb 2025 15:09:09 +0100 Subject: [PATCH] fix --- .../Private/UI/Widgets/GBFCommonTextTyper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/GameBaseFramework/Private/UI/Widgets/GBFCommonTextTyper.cpp b/Source/GameBaseFramework/Private/UI/Widgets/GBFCommonTextTyper.cpp index 7829624d..4433771e 100644 --- a/Source/GameBaseFramework/Private/UI/Widgets/GBFCommonTextTyper.cpp +++ b/Source/GameBaseFramework/Private/UI/Widgets/GBFCommonTextTyper.cpp @@ -47,10 +47,10 @@ void UGBFCommonTextTyper::NativeTick( const FGeometry & my_geometry, float delta if ( CurrentCharIndex < EntireText.ToString().Len() ) { - const auto visible_text = EntireText.ToString().Left( CurrentCharIndex ); + const auto visible_text = EntireText.ToString().Left( CurrentCharIndex + 1 ); AnimatedTextBlock->SetText( FText::FromString( visible_text ) ); CurrentCharIndex++; - ElapsedTimeSinceLastCharWritten = 0; + ElapsedTimeSinceLastCharWritten = 0.0f; } else {