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

    Joined:
    Jan 6, 2017
    Posts:
    13
    I'm defining an empty array (requiredFlags) in an object's variable definitions like so:
    [​IMG]
    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