• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Quick Question (struct destroying)

Status
Not open for further replies.
Hello everyone :D

When I destroy a struct, are all its members set to 0/null when that index is recycled (that is, a new struct is created and takes its place), or are all previous values kept?

I've been having problems with members values being kept when a new struct is created, is that normal or some problem?

It's kinda boring having to create an onDestroy method just to set several members to 0 -.-

Thanks!
Hossomi
 
Status
Not open for further replies.
Top