Fixed String comparisons.

This commit is contained in:
Vincent Gee 2014-11-05 23:29:08 -05:00
parent d6570e3533
commit 2f48f31a6f
5 changed files with 7 additions and 7 deletions

View file

@ -5114,7 +5114,7 @@ DefineConsoleMethod(GuiTreeViewCtrl, moveItemDown, void, (S32 index), , "(TreeIt
DefineConsoleMethod(GuiTreeViewCtrl, getTextToRoot, const char*, (S32 itemId, const char * delimiter), ,
"(TreeItemId item,Delimiter=none) gets the text from the current node to the root, concatenating at each branch upward, with a specified delimiter optionally")
{
if ( delimiter == "" )
if (!dStrcmp(delimiter, "" ))
{
Con::warnf("GuiTreeViewCtrl::getTextToRoot - Invalid number of arguments!");
return ("");