diff --git a/Source/Engine/Render2D/Font.cpp b/Source/Engine/Render2D/Font.cpp index d80f7d19c..5881c2322 100644 --- a/Source/Engine/Render2D/Font.cpp +++ b/Source/Engine/Render2D/Font.cpp @@ -124,7 +124,7 @@ void Font::ProcessText(const StringView& text, Array& outputLines int32 lastUpperIndex = INVALID_INDEX; float lastUpperX = 0; - + int32 lastUnderscoreIndex = INVALID_INDEX; float lastUnderscoreX = 0; @@ -155,6 +155,7 @@ void Font::ProcessText(const StringView& text, Array& outputLines lastUpperX = cursorX; } + // Check if character is an underscore const bool isUnderscore = currentChar == '_'; if (isUnderscore) {