m_SpawnedObjectsOnDeath is null when I let it blank

TrungDong

Member
Like what I wrote on the title. I don't want my character to spawn anything on his death, so I let his health's SpawnedObjectsOnDeath blank.
Then the null error happened. (Health.cs line 337)
Code:
for (int i = 0; i < m_SpawnedObjectsOnDeath.Length; ++i) {
Inserting a null-check or setting an initial value can resolve this problem, I can do it myself but if I do that, each time I update the package, this bug will happen again. So to avoid it, would you mind fixing this bug for me?

Same bug for m_DestroyedObjectsOnDeath in Health.cs
 
Last edited:
Top