diff --git a/Source/UI/Text/PixelTextWrapping.cpp b/Source/UI/Text/PixelTextWrapping.cpp index 57792db1f..7a36f285d 100644 --- a/Source/UI/Text/PixelTextWrapping.cpp +++ b/Source/UI/Text/PixelTextWrapping.cpp @@ -11,11 +11,14 @@ // OFFSET: 0x00A82310 // FUNCTION: fn_16993 void UIWindow::WrapPixelText(const char* text, std::vector& lines, int width) { - if (!text || *text == '\0') { + if (!text) { return; } const int bytes = static_cast(std::strlen(text)); + if (bytes == 0) { + return; + } if (this->TextWidth(text, bytes, 0, 12, 0, 0) <= 0) { return;