Skip to content

Array contents get randomly corrupted #4

@SilentPhil

Description

@SilentPhil

Hi, I came across your comment under the discussion of a bug in game maker's bug tracker. YoYoGames/GameMaker-Bugs#2253
I'm having similar problems in my project, now I'm trying to find something in common between your code and mine to come up with a solution to the problem.
If you are able to reproduce the bug, can you try replacing array_concat with your implementation? For example with:

function array_merge() {
	var final_arr = [];
	for (var i = 0; i < argument_count; i++) {
		array_copy(final_arr, array_length(final_arr), argument[i], 0, array_length(argument[i]));
	}
	return final_arr;
}

I have a suspicion that it may be a bug in the new array-related functions. But I can't check it, because in my project array corruption is rather random.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions