From b580b4a54219a0fa9978454d2e8c1612e79f0061 Mon Sep 17 00:00:00 2001 From: Dennis Brakhane Date: Sat, 14 Feb 2015 17:18:29 +0100 Subject: [PATCH] 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. --- Engine/source/gui/controls/guiTreeViewCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gui/controls/guiTreeViewCtrl.cpp b/Engine/source/gui/controls/guiTreeViewCtrl.cpp index e7daf4afb..432af3250 100644 --- a/Engine/source/gui/controls/guiTreeViewCtrl.cpp +++ b/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), ,