- do not init pointers to 0xffffffffffffffff.

These will most certainly crash when used in any way.
This commit is contained in:
Christoph Oelckers 2021-12-02 18:42:02 +01:00
parent cb099b1b66
commit 60630f5b84

View file

@ -386,7 +386,9 @@ void SectorSetup(void)
{
memset(&SectorObject[ndx], -1, sizeof(SectorObject[0]));
// 0 pointers
//memset(&SectorObject[ndx].sectp, nullptr, sizeof(SectorObject[0].sectp));
memset(&SectorObject[ndx].sectp, 0, sizeof(SectorObject[0].sectp));
memset(&SectorObject[ndx].so_actors, 0, sizeof(SectorObject[0].so_actors));
SectorObject[ndx].match_event_actor = nullptr;
SectorObject[ndx].PreMoveAnimator = nullptr;
SectorObject[ndx].PostMoveAnimator = nullptr;
SectorObject[ndx].Animator = nullptr;