瀏覽代碼

Merge pull request #264 from greenfire27/GrowToFix

Bug Fix for GrowTo
Peter Robinson 10 年之前
父節點
當前提交
b2a1105b3a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      engine/source/2d/sceneobject/SceneObject_ScriptBinding.h

+ 1 - 1
engine/source/2d/sceneobject/SceneObject_ScriptBinding.h

@@ -2065,7 +2065,7 @@ ConsoleMethodWithDocs(SceneObject, growTo, ConsoleBool, 4, 4, (targetSize width
 	}
 
 	Vector2 rate;
-	const U32 rateCount = Utility::mGetStringElementCount(argv[2]);
+	const U32 rateCount = Utility::mGetStringElementCount(argv[3]);
 	if (rateCount == 1)
 	{
 		rate.x = dAtof(Utility::mGetStringElement(argv[3], 0));