mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Safety check, in case this method is used out of context
This commit is contained in:
parent
59e0e5414f
commit
e3da91dc7b
@ -272,7 +272,7 @@ int UTypewriterTextWidget::CalculateMaxLength()
|
||||
if (Segment.Text.Equals(FString(TEXT("\n"))))
|
||||
{
|
||||
CurrentNumberOfLines++;
|
||||
if (CurrentNumberOfLines > MaxNumberOfLines)
|
||||
if (MaxNumberOfLines > 0 && CurrentNumberOfLines > MaxNumberOfLines)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user