Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Struct variable declaration crash

    Bug Reporting (FUZE 4 Nintendo Switch)
    2
    4
    209
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      EvanTropFun last edited by

      Hello i don't know if you know, but in fuze we can declare variable like that :

      int a,b,c,d = 45
      

      This way work perfectely, but if you declare variable with this way in a struct and after you create a instance of your struct object with this code :

      struct TEST
       int a,b,c,d = 45
      endstruct
      
      TEST test
      

      and you run the program ,you have a

      The software was closed because an error occurred.

      To fix.

      1 Reply Last reply Reply Quote 0
      • E
        EvanTropFun last edited by

        Little rectification :

        If you delare the variable but you don't set value there is no crash

        1 Reply Last reply Reply Quote 0
        • E
          EvanTropFun last edited by

          RErectification :

          I had the bug because i set in my struct :

          struct TEST
           int x,y = gheight()/2
          endstruct
          

          This bug occured because i call functions in the struct

          So, to fix.

          1 Reply Last reply Reply Quote 0
          • Kat
            Kat Fuze Team last edited by

            Thank you for the report! This will be addressed in the next patch.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post