From 0277db67dc463736a2cd73604ce37f863ec4a5e1 Mon Sep 17 00:00:00 2001 From: Tornado-Technology Date: Wed, 4 May 2022 18:08:19 +1000 Subject: [PATCH] Fix to_map keys --- scripts/Vector2/Vector2.gml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Vector2/Vector2.gml b/scripts/Vector2/Vector2.gml index d7367d9..04f7086 100644 --- a/scripts/Vector2/Vector2.gml +++ b/scripts/Vector2/Vector2.gml @@ -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; }