Prechádzať zdrojové kódy

corrects a pair of conversions. one object oriented, one not.

Azaezel 6 rokov pred
rodič
commit
a7fc407284

+ 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 "