GuiTextEditCtrl flawed
by Bryce "Cogburn" Weiner · in Torque Game Engine Advanced · 03/04/2007 (12:58 pm) · 3 replies
This if block sets the proper string buffer....
... but after textBufffer is assigned, mTextBuffer continues to be used. Simply changing all instances of mTextBuffer to textBufffer after the posted if block fixes the problem.
if(mPasswordText)
{
for(U32 i = 0; i<mTextBuffer.length(); i++)
textBuffer.append(StringBuffer(mPasswordMask));
}
else
{
// Or else just copy it over.
textBuffer.set(&mTextBuffer);
}... but after textBufffer is assigned, mTextBuffer continues to be used. Simply changing all instances of mTextBuffer to textBufffer after the posted if block fixes the problem.
Torque Owner Jeremiah Fulbright