From cd310b2626e66ce46133f2adce27aa8a9f579952 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 03:06:34 +0000 Subject: [PATCH] Decompile fn_16993 (UIWindow::WrapPixelText) Batch #13794 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_16993 UIWindow::WrapPixelText: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, SapitoSucio Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Text/PixelTextWrapping.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;