Skip to content

Commit 0277db6

Browse files
Fix to_map keys
1 parent 8458670 commit 0277db6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/Vector2/Vector2.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ function ClassVector2(x, y) constructor {
299299
/// @param {bool} mirror
300300
static to_map = function(mirror = false) {
301301
var map = ds_map_create();
302-
map[? 0] = mirror ? y : x;
303-
map[? 1] = mirror ? x : y;
302+
map[? "x"] = mirror ? y : x;
303+
map[? "y"] = mirror ? x : y;
304304
return map;
305305
}
306306

0 commit comments

Comments
 (0)