[Fix] Clear player lockons when running space_init().
This commit is contained in:
parent
b8b98e10ad
commit
aa8408022d
@ -1110,8 +1110,10 @@ void pilots_clean(void) {
|
||||
int i;
|
||||
for(i = 0; i < pilot_nstack; i++)
|
||||
/* We'll set player at priveleged position. */
|
||||
if((player != NULL) && (pilot_stack[i] == player))
|
||||
if((player != NULL) && (pilot_stack[i] == player)) {
|
||||
pilot_stack[0] = player;
|
||||
pilot_stack[0]->lockons = 0; /* Clear lockons. */
|
||||
}
|
||||
else /* Rest get killed. */
|
||||
pilot_free(pilot_stack[i]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user