Fixed crash on testmaps/test_lotsaimps#721
Conversation
|
Have you tried figuring out why that happens? root = pathNodeAllocator.Alloc();
root->Init();
...
return root;So the code in that function is already completely broken if |
|
I did not gdb into it. In my specific casing, testing I added the root check because I've noticed that BFG has it: https://github.com/id-Software/DOOM-3-BFG/blob/master/neo/d3xp/ai/AI_pathing.cpp#L900 |
|
Ok - I haven't really understood that code, but probably one could skip a lot of code if the root returned by |
|
Both Prey and Quake 4 do something similar, I assumed BFG to be newer: |
|
Can you remove the root != NULL parts? |
19c7787 to
b4172d7
Compare
|
That makes sense. Just pushed it. |
|
Thanks - can you also adjust the commit message? ;) |
…mps due to null children.
b4172d7 to
8a3ddbb
Compare
|
Done. |
|
Awesome, thanks a lot! |
root->children[0]androotmight be null here, which causes a crash in certain scenarios when playingtestmaps/test_lotsaimps.