Reassign linked list pointers after memset (title screen crash).
This commit is contained in:
parent
4092ae6a10
commit
b2e22b31b9
|
@ -500,4 +500,11 @@ void destroyBattle(void)
|
|||
destroyEffects();
|
||||
|
||||
memset(&battle, 0, sizeof(Battle));
|
||||
battle.bulletTail = &battle.bulletHead;
|
||||
battle.debrisTail = &battle.debrisHead;
|
||||
battle.entityTail = &battle.entityHead;
|
||||
battle.effectTail = &battle.effectHead;
|
||||
battle.objectiveTail = &battle.objectiveHead;
|
||||
battle.locationTail = &battle.locationHead;
|
||||
battle.spawnerTail = &battle.spawnerHead;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue