Просмотр исходного кода

Merge pull request #264 from greenfire27/GrowToFix

Bug Fix for GrowTo
Peter Robinson 10 лет назад
Родитель
Сommit
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));