1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

Question - Code [SOLVED] Variable definition not returning empty array

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Massimog, Aug 10, 2019.

  1. Massimog

    Massimog Member

    Jan 6, 2017
    I'm defining an empty array (requiredFlags) in an object's variable definitions like so:
    For some reason, this is returning an array of size 1, with 0 as the first value.
    I did the exact same thing in another project and that returned an empty array as intended.
    This is fairly easy to work around but I'm wondering if anyone knows why this is happening?

    Edit: Adding a list item, selecting it in the drop down, then deselecting it resolved the issue.

    Attached Files:

    Last edited: Aug 11, 2019

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice