[Scummvm-git-logs] scummvm master -> 692a2e166eb601985c0076ec61dbdd5809230c51

mduggan noreply at scummvm.org
Sat Oct 15 05:31:22 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
692a2e166e MATH: Make Vector3d::length const correct


Commit: 692a2e166eb601985c0076ec61dbdd5809230c51
    https://github.com/scummvm/scummvm/commit/692a2e166eb601985c0076ec61dbdd5809230c51
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2022-10-15T14:31:00+09:00

Commit Message:
MATH: Make Vector3d::length const correct

Changed paths:
    math/vector3d.h


diff --git a/math/vector3d.h b/math/vector3d.h
index 63e4d143c8e..832d86b0f39 100644
--- a/math/vector3d.h
+++ b/math/vector3d.h
@@ -109,7 +109,7 @@ public:
 	 * Calculate vector length
 	 * @return      The computed length
 	 */
-	float length() {
+	float length() const {
 		return sqrtf(x() * x() + y() * y() + z() * z());
 	}
 




More information about the Scummvm-git-logs mailing list