GuiDirectoryFileListCtrl - setPath variables bug
by Mark Kinkead · in Torque Game Builder · 12/29/2006 (8:36 am) · 0 replies
Does something like this go here, or is there a better forum for the gui stuff?
Anyway,
In GuiDirectoryFileListCtrl.cc
ConsoleMethod( GuiDirectoryFileListCtrl, setPath, bool, 3, 4, "setPath(path,filter) - directory to enumerate files from (without trailing slash)" )
{
return object->setCurrentPath( argv[2], argv[3] );
}
You will see it allows the 4th var to be optional (the filter variable), but there is no argc check and thus garbage goes in.
--Mark
Anyway,
In GuiDirectoryFileListCtrl.cc
ConsoleMethod( GuiDirectoryFileListCtrl, setPath, bool, 3, 4, "setPath(path,filter) - directory to enumerate files from (without trailing slash)" )
{
return object->setCurrentPath( argv[2], argv[3] );
}
You will see it allows the 4th var to be optional (the filter variable), but there is no argc check and thus garbage goes in.
--Mark