浏览代码

Fixed a Typo

The typo prevents the SafeCreteaNamedObject function from working properly.
Peter Robinson 3 年之前
父节点
当前提交
4ebf34b0ce
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      editor/EditorCore/gui/guiProfiles.cs
  2. 1 1
      library/AppCore/gui/guiProfiles.cs

+ 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());