Streamline plist initialization
msl_equip(), find_escorts() and perform_mission() memset() the plist, then assign to all members but load. Just zero load instead, like getilists(), msl_sel() and pln_sel() do.
This commit is contained in:
parent
48f3d1c033
commit
bad2fd5aac
2 changed files with 3 additions and 4 deletions
|
@ -354,7 +354,7 @@ msl_equip(struct plnstr *pp, char mission)
|
|||
{
|
||||
struct plist pl;
|
||||
|
||||
memset(&pl, 0, sizeof(struct plist));
|
||||
pl.load = 0;
|
||||
pl.pcp = plchr + pp->pln_type;
|
||||
pl.plane = *pp;
|
||||
emp_initque(&pl.queue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue