Cleanup more the entities once they get destructed#39
Cleanup more the entities once they get destructed#39necessarily-equal wants to merge 1 commit intomasterfrom
Conversation
|
I tried to use the arrays EmptyEntity::componentOffsets and EmptyEntity::messageHandlers instead, but they are apprently private. This PR is an alternative solution. |
|
Can you explain the bug in detail so we can learn? |
|
Is your hypothesis that one of the components of the entity being destroyed tries to access one of the entity's other components from its destructor? If that's the case, the fix won't help as |
Well that's not it - the only two components with user-defined destructors are TurretComponent and SpawnerComponent. (The latter does have something of a bug of the type I described though - Unvanquished#2233) |
|
Marking as draft before I find time to test more (probably not soon) |
|
It looks like this submodule reference had been mistakenly committed. I noticed it because a |
|
It looks to have been committed in Unvanquished/Unvanquished@4fb94c2 |
Supposedly fixes Unvanquished/Unvanquished#1939