forked from github/server
Fix ship-owners when control is given
This commit is contained in:
parent
9cbdaea27f
commit
43f5770694
|
@ -638,6 +638,9 @@ static void give_control(unit * u, unit * u2)
|
|||
}
|
||||
}
|
||||
}
|
||||
if (u->ship) {
|
||||
u->ship->owner = u2;
|
||||
}
|
||||
freset(u, UFL_OWNER);
|
||||
fset(u2, UFL_OWNER);
|
||||
}
|
||||
|
|
|
@ -812,6 +812,7 @@ void leave_ship(unit * u)
|
|||
fset(owner, UFL_OWNER);
|
||||
}
|
||||
}
|
||||
assert(sh->owner!=u);
|
||||
}
|
||||
|
||||
void leave_building(unit * u)
|
||||
|
|
Loading…
Reference in New Issue