From a3d87bfd5668e8fff7b7aa75f50173daa133c30f Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sat, 4 Oct 2025 22:30:35 -0500 Subject: [PATCH] fix(ui): correct handling of bytes attribute when loading CSimpleEditBox XML --- src/ui/CSimpleEditBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/CSimpleEditBox.cpp b/src/ui/CSimpleEditBox.cpp index 4391676..2716084 100644 --- a/src/ui/CSimpleEditBox.cpp +++ b/src/ui/CSimpleEditBox.cpp @@ -674,9 +674,9 @@ void CSimpleEditBox::LoadXML(XMLNode* node, CStatus* status) { int32_t bytes = SStrToInt(bytesAttr); if (bytes <= 0) { - this->m_textLength = -1; + this->m_textLengthMax = -1; } else { - this->m_textLength = bytes - 1; + this->m_textLengthMax = bytes - 1; } }