Skip to content

Commit

Permalink
fixed bot API bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ngc92 committed Feb 28, 2023
1 parent ca0bb77 commit b22201d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IScriptableComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ int simulate_steps( lua_State* state )
PhysicWorld* world = getWorld( state );
// get the initial ball settings
lua_checkstack(state, 5);
int steps = lua_tointeger( state, 1);
int steps = lua_to_int( state, 1);
float x = lua_tonumber( state, 2);
float y = lua_tonumber( state, 3);
float vx = lua_tonumber( state, 4);
Expand Down

0 comments on commit b22201d

Please sign in to comment.