• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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