mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- do not init pointers to 0xffffffffffffffff.
These will most certainly crash when used in any way.
This commit is contained in:
parent
cb099b1b66
commit
60630f5b84
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue