diff --git a/src/simulation/elements/FRAY.cpp b/src/simulation/elements/FRAY.cpp index 0a678143e..61cf72b9c 100644 --- a/src/simulation/elements/FRAY.cpp +++ b/src/simulation/elements/FRAY.cpp @@ -70,8 +70,8 @@ static int update(UPDATE_FUNC_ARGS) if (!r) r = sim->photons[y+nyi+nyy][x+nxi+nxx]; if (r && !(sim->elements[TYP(r)].Properties & TYPE_SOLID)){ - parts[ID(r)].vx += nxi*((parts[i].temp-273.15)/10.0f); - parts[ID(r)].vy += nyi*((parts[i].temp-273.15)/10.0f); + parts[ID(r)].vx += nxi*((parts[i].temp-273.15f)/10.0f); + parts[ID(r)].vy += nyi*((parts[i].temp-273.15f)/10.0f); } } }