Skip to content
Snippets Groups Projects
Commit 91001c5d authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Fix typo r_inv, should be rinv

parent c6c185cd
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ external_gravity_get_potential_energy(
const float dy = g->x[1] - potential->y;
const float dz = g->x[2] - potential->z;
const float rinv = 1. / sqrtf(dx * dx + dy * dy + dz * dz);
return -phys_const->const_newton_G * potential->mass * r_inv;
return -phys_const->const_newton_G * potential->mass * rinv;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment