vere: fixes u3_auto_drop list-unlink implementation

This commit is contained in:
Joe Bryan 2020-06-16 18:52:16 -07:00
parent 42213269ce
commit 5c9252e986

View File

@ -162,10 +162,16 @@ u3_auto_drop(u3_auto* car_u, u3_ovum* egg_u)
if ( egg_u->pre_u ) {
egg_u->pre_u->nex_u = egg_u->nex_u;
}
else {
egg_u->car_u->ent_u = egg_u->nex_u;
}
if ( egg_u->nex_u ) {
egg_u->nex_u->pre_u = egg_u->pre_u;
}
else {
egg_u->car_u->ext_u = egg_u->pre_u;
}
egg_u->car_u->dep_w--;