Fixed bug when removing units inside of another unit
This commit is contained in:
parent
35d6625f77
commit
3d5e20496f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue