Sammi3
Member
Hello, I'm having an issue when using an array as a ds_map key. When I set an array as a key and immediately try to get the value, it works. But when I use ds_map_find_* functions, while the array is returned, it is not usable as a key. For example:
Where state is an array. This works and returns the variable stored in action.
While:
returns undefined.
Is there any way around this because I need the variable state to be an array and the map needs the array as a reference to the variable stored.
Code:
previousNodes[?state] = action;
show_debug_message(previousNodes[?state]);
While:
Code:
key = ds_map_find_first(previousNodes);
show_debug_message(previousNodes[?key]);
Is there any way around this because I need the variable state to be an array and the map needs the array as a reference to the variable stored.