Skip to content

Commit

Permalink
Fix runtime error when computing the dot product via utilities.lua (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 authored Nov 10, 2024
1 parent 128f7d7 commit 13511e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog/snippets/other.6438.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- (#5061, #6438) Add metamethods and utility functions for Vectors and Quaternions to simplify and clean up the code involving operations with them.
- (#5061, #6438, #6527) Add metamethods and utility functions for Vectors and Quaternions to simplify and clean up the code involving operations with them.
- This **removes** the file `/lua/shared/quaternions.lua`, which was added in #4768 (Mar 4, 2023), so mods that use that file will have to be updated.
- The metamethods (defined globally in `/lua/system/utils.lua`) include:
- Vector/Vector2 addition/subtraction/negation
Expand Down
2 changes: 1 addition & 1 deletion lua/utilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ end
---@param v2 Vector
---@return number
function DotP(v1, v2)
return v1[1] * v2[1] + v1[2] * v[2] + v[3] * v[3]
return v1[1] * v2[1] + v1[2] * v2[2] + v1[3] * v2[3]
end

--- Returns the conjugate of a quaternion
Expand Down

0 comments on commit 13511e2

Please sign in to comment.