summaryrefslogtreecommitdiff
path: root/src/SSystem/SComponent/c_lib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SSystem/SComponent/c_lib.cpp')
-rw-r--r--src/SSystem/SComponent/c_lib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SSystem/SComponent/c_lib.cpp b/src/SSystem/SComponent/c_lib.cpp
index 16fd52e15d..482c23b58b 100644
--- a/src/SSystem/SComponent/c_lib.cpp
+++ b/src/SSystem/SComponent/c_lib.cpp
@@ -242,7 +242,7 @@ void cLib_addCalcPosXZ2(cXyz* ppos, const cXyz& target, f32 scale, f32 maxStep)
* @param minStep Minimum step amount
* @return The remaining distance to target
*/
-s16 cLib_addCalcAngleS(s16* pvalue, s16 target, s16 scale, s16 maxStep, s16 minStep) {
+s16 cLib_addCalcAngleS(s16* pvalue, s16 target, const s16 scale, s16 maxStep, s16 minStep) {
s16 diff = target - *pvalue;
if (*pvalue != target) {
s16 step = (diff) / scale;