Skip to content

Commit

Permalink
Fix to_map keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornado-Technology committed May 4, 2022
1 parent 8458670 commit 0277db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/Vector2/Vector2.gml
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ function ClassVector2(x, y) constructor {
/// @param {bool} mirror
static to_map = function(mirror = false) {
var map = ds_map_create();
map[? 0] = mirror ? y : x;
map[? 1] = mirror ? x : y;
map[? "x"] = mirror ? y : x;
map[? "y"] = mirror ? x : y;
return map;
}

Expand Down

0 comments on commit 0277db6

Please sign in to comment.