Skip to content

Commit

Permalink
Fix return value counts...
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Oct 2, 2023
1 parent da430d5 commit 03b6b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/physics/box2d/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ int World::rayCastAny(lua_State *L)
lua_pushnumber(L, raycast.hitNormal.x);
lua_pushnumber(L, raycast.hitNormal.y);
lua_pushnumber(L, raycast.hitFraction);
return 5;
return 6;
}
return 0;
}
Expand Down Expand Up @@ -694,7 +694,7 @@ int World::rayCastClosest(lua_State *L)
lua_pushnumber(L, raycast.hitNormal.x);
lua_pushnumber(L, raycast.hitNormal.y);
lua_pushnumber(L, raycast.hitFraction);
return 5;
return 6;
}
return 0;
}
Expand Down

0 comments on commit 03b6b9f

Please sign in to comment.