Fixed bug when removing units inside of another unit

This commit is contained in:
jsalmon3 2003-02-20 08:14:59 +00:00
parent 35d6625f77
commit 3d5e20496f

View file

@ -649,6 +649,7 @@ global void RemoveUnit(Unit* unit, Unit* host)
if( unit->Removed ) { // could happen!
// If unit is removed (inside) and building is destroyed.
unit->Next=NULL;
return;
}
unit->Removed=1;