Fixed segmentation violation exhibited when attempting to play KAOZ-beta2 in jHeretic.
For some reason under rare circumstances mobj->target ends up pointing to a mobj whose thinker->function != P_MobjThinker() and as these are not considered when calculating the thing archive size they are using up slots when SV_ThingArchiveNum() is called.
I have implemented extra checks to make sure only thinkers whose function == P_MobjThinker are given slots in the thing archive but this problem needs to be investigated further.
Fixed segmentation violation exhibited when attempting to play KAOZ-beta2 in jHeretic.
For some reason under rare circumstances mobj->target ends up pointing to a mobj whose thinker->function != P_MobjThinker() and as these are not considered when calculating the thing archive size they are using up slots when SV_ThingArchiveNum() is called.
I have implemented extra checks to make sure only thinkers whose function == P_MobjThinker are given slots in the thing archive but this problem needs to be investigated further.