fixed collision_find_surface_on_ray (#73)

This commit is contained in:
Isaac0-dev 2024-06-18 18:21:20 +10:00 committed by GitHub
parent e76e212312
commit df7e4b1fd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -867,7 +867,7 @@ int smlua_func_collision_find_surface_on_ray(lua_State* L) {
f32 precision = paramCount == 7 ? smlua_to_number(L, 7) : 3.0f;
if (!gSmLuaConvertSuccess) { LOG_LUA("collision_find_surface_on_ray: Failed to convert parameter 7"); return 0; }
collision_find_surface_on_ray(startX, startY, startZ, dirX, dirY, dirZ, precision);
smlua_push_object(L, LOT_RAYINTERSECTIONINFO, collision_find_surface_on_ray(startX, startY, startZ, dirX, dirY, dirZ, precision));
return 1;
}