Explorar o código

return the result value of scrollVisible

The console function changed from void to bool, so we
should actually return the value.

Also, the missing return is an error in VS2013.
Dennis Brakhane %!s(int64=10) %!d(string=hai) anos
pai
achega
b580b4a542
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/gui/controls/guiTreeViewCtrl.cpp

+ 1 - 1
Engine/source/gui/controls/guiTreeViewCtrl.cpp

@@ -4924,7 +4924,7 @@ DefineEngineMethod( GuiTreeViewCtrl, scrollVisible, bool, ( S32 itemID), ,
    "@param itemID TreeItemId of item to scroll to/make visible.\n"
    "@return True if it was successful, false if not.")
 {
-   object->scrollVisible(itemID);
+   return object->scrollVisible(itemID);
 }
 
 DefineEngineMethod( GuiTreeViewCtrl, buildIconTable, bool, ( const char* icons), ,