GMS 2.3+ Exited with non-zero status (-1073741819)

Hey,

I have encountered a very annoying problem which I am unable to solve. The game crashes whenever this piece of code runs and the objects get destroyed;

GML:
for(var i = 0; i < ds_list_size(all_types); i+=1){
    with(ds_list_find_value(all_types, i)){
        if(floating_island_identifier == other.target_identifier){
            if(object_get_parent(object_index) == obj_parent_structure){
                deleted_by_user = true;
            }
                   
            instance_destroy();  
            continue;
        }
    }
}

with(obj_parent_ground){
    if(identifier != other.target_identifier){continue;}
    instance_destroy();
}

instance_destroy();
I am truly at a loss here, why is this causing a crash?

Importantly, this only occurs in YYC.

EDIT: Simplified the code, as the first commenter pointed out the previous code was a rather big mess.

Thanks!
 
Last edited:

Nidoking

Member
You're clearly destroying the same thing twice. This is rather a big mess, but whatever is running this is probably destroying itself in that loop and then trying to destroy itself again at the end. Or, given the output, this is a Destroy event and it's being called recursively.
 
Top