ソースを参照

Fixed a Typo

The typo prevents the SafeCreteaNamedObject function from working properly.
Peter Robinson 3 年 前
コミット
4ebf34b0ce

+ 1 - 1
editor/EditorCore/gui/guiProfiles.cs

@@ -81,7 +81,7 @@ function EditorCore::SafeCreateNamedObject(%this, %name, %object)
 	if(isObject(%name))
 	{
 		%originalObject = nameToID(%name);
-		if(%orginalObject.getClassName() !$= %object.getClassName())
+		if(%originalObject.getClassName() !$= %object.getClassName())
 		{
 			warn("Attempted to change the class of the named object " @ %name @ "!");
 			warn("Original Class: " @ %originalObject.getClassName());

+ 1 - 1
library/AppCore/gui/guiProfiles.cs

@@ -81,7 +81,7 @@ function AppCore::SafeCreateNamedObject(%this, %name, %object)
 	if(isObject(%name))
 	{
 		%originalObject = nameToID(%name);
-		if(%orginalObject.getClassName() !$= %object.getClassName())
+		if(%originalObject.getClassName() !$= %object.getClassName())
 		{
 			warn("Attempted to change the class of the named object " @ %name @ "!");
 			warn("Original Class: " @ %originalObject.getClassName());