瀏覽代碼

Merge pull request #2285 from Azaezel/method_Unmangle

corrects a pair of conversions. one object oriented, one not.
Areloch 6 年之前
父節點
當前提交
6a6f452dad
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Engine/source/gui/editor/popupMenu.cpp
  2. 1 1
      Engine/source/testing/unitTesting.cpp

+ 1 - 1
Engine/source/gui/editor/popupMenu.cpp

@@ -509,7 +509,7 @@ DefineEngineMethod(PopupMenu, getItemCount, S32, (), , "()")
    return object->getItemCount();
 }
 
-DefineConsoleMethod(PopupMenu, clearItems, void, (), , "()")
+DefineEngineMethod(PopupMenu, clearItems, void, (), , "()")
 {
 	return object->clearItems();
 }

+ 1 - 1
Engine/source/testing/unitTesting.cpp

@@ -76,7 +76,7 @@ public:
    TorqueUnitTestListener( bool verbose ) : mVerbose( verbose ) {}
 };
 
-DefineConsoleFunction( runAllUnitTests, int, (const char* testSpecs), (""),
+DefineEngineFunction( runAllUnitTests, int, (const char* testSpecs), (""),
    "Runs engine unit tests. Some tests are marked as 'stress' tests which do not "
    "necessarily check correctness, just performance or possible nondeterministic "
    "glitches. There may also be interactive or networking tests which may be "