Skip to content

Commit

Permalink
standardize handling of shifting indexes to always be handled by c++
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jan 13, 2017
1 parent bcae636 commit 26a2778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Steps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ class LunaSteps: public Luna<Steps>
static int GetMSD(T* p, lua_State *L)
{
float rate = FArg(1);
int index = IArg(2);
int index = IArg(2)-1;
CLAMP(rate, 0.7f, 2.f);
lua_pushnumber(L, p->GetMSD(rate, index));
return 1;
Expand Down

0 comments on commit 26a2778

Please sign in to comment.