• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Bug: Seemingly wrong error when logging an array with one string more than once

Z

ZachIsAGardner

Guest
In GameMaker 2.3 it seems that if you create two debug messages in a row for an array that only contains one string element it will log instead: "Warning: recursive array found"

GML:
var arr = ["Hudson"];
show_debug_message(arr);
show_debug_message(arr);

// result:
// [ "Hudson" ]
// "Warning: recursive array found"

Arrays with more than one string or one number will work as expected.

GML:
var arr = ["Hudson", "Wiggles"];
show_debug_message(arr);
show_debug_message(arr);

// result:
// [ "Hudson", "Wiggles ]
// [ "Hudson", "Wiggles ]
Is this where I should post about bugs, or is there somewhere else?

Thanks!
 
Top