diff --git a/src/modules/physics/box2d/World.cpp b/src/modules/physics/box2d/World.cpp index db30fcfec..8e37940c7 100644 --- a/src/modules/physics/box2d/World.cpp +++ b/src/modules/physics/box2d/World.cpp @@ -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; } @@ -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; }