Neptune
Member
If I code
Did I just destroy some random list index on the second destroy, because the variable my_list was now possibly referencing a different list somewhere?
GML:
var my_list = ds_list_create(); // now some index (8?)
ds_list_destroy(my_list);
if ds_exists(my_list,ds_type_list) {ds_list_destroy(my_list);}