Closed bretonium closed 5 years ago
Ok so the pointer to the hero flag seems to be null. This crash happens inside the Snap function. Here the hero flags will be created: (inside the Tick function) https://github.com/bretonium/my-infclass-server/blob/test-master/src/game/server/entities/character.cpp#L2419 So if the hero flag is null inside the Tick function a new one should be created Hero flags will be delted here: (inside destroy ChildEntities function) https://github.com/bretonium/my-infclass-server/blob/test-master/src/game/server/entities/character.cpp#L3744
I added a null pointer check: https://github.com/yavl/teeworlds-infclassR/commit/4a29b7848017352149d61866d55564a4223e466c Maybe the problem was that the snap would happen before the tick happens right after a player chooses a hero. Or maybe there is some other unknown bug.
Steps to reproduce:
Unfortunately, i could not capture the exception that happened and have only the following trace:
On my server line numbers are a little different because of few modifications. Corresponding lines (they are the same as upstream): https://github.com/bretonium/my-infclass-server/blob/test-master/src/game/server/entities/character.cpp#L3133