Note that this change appears to change the logic:
if (!storageNode->ReadData(particlesNode.GetPointer()) != 0)
if (storageNode->ReadData(particlesNode.GetPointer()) != 0)
I believe the old code was actually incorrect (not sure if it
actually worked). ReadData returns 0 on error, so with this
change the code that uses the data is only executed when ReadData
succeeds.
Note that this change appears to change the logic:
I believe the old code was actually incorrect (not sure if it actually worked). ReadData returns 0 on error, so with this change the code that uses the data is only executed when ReadData succeeds.