Explorar o código

fixed ParticleSystem:setSize() looking at the wrong argument for size variation

Bill Meltsner %!s(int64=14) %!d(string=hai) anos
pai
achega
45b8ba7ae3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/modules/graphics/opengl/wrap_ParticleSystem.cpp

+ 1 - 1
src/modules/graphics/opengl/wrap_ParticleSystem.cpp

@@ -148,7 +148,7 @@ namespace opengl
 		ParticleSystem * t = luax_checkparticlesystem(L, 1);
 		float arg1 = (float)luaL_checknumber(L, 2);
 		float arg2 = (float)luaL_optnumber(L, 3, arg1);
-		float arg3 = (float)luaL_optnumber(L, 3, 0);
+		float arg3 = (float)luaL_optnumber(L, 4, 0);
 		t->setSize(arg1, arg2, arg3);
 		return 0;
 	}