Game Development Community

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....

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.

#1
03/04/2007 (2:45 pm)
This has been a long standing bug from TGE that has never gotten changed in the codebase, despite being posted about numerous times heh
#2
03/04/2007 (2:57 pm)
LOL...

Then I get +1 :)
#3
03/04/2007 (4:20 pm)
Thanks for the headsup Bryce!

addikt