Fixed bug: loading critters into transporter, crashes.
This commit is contained in:
parent
5ad1c208dd
commit
c75b3a07eb
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,7 @@
|
|||
** Unit stands still or stand ground.
|
||||
**
|
||||
** @param unit Unit pointer for action.
|
||||
** @param ground Flag: true if unit is standing ground.
|
||||
*/
|
||||
global void ActionStillGeneric(Unit* unit,int ground)
|
||||
{
|
||||
|
@ -50,6 +51,12 @@ global void ActionStillGeneric(Unit* unit,int ground)
|
|||
|
||||
DebugLevel3Fn(" %Zd\n",UnitNumber(unit));
|
||||
|
||||
if( unit->Removed ) { // Removed units, do nothing?
|
||||
// If peon is in building or unit is in transporter it is removed.
|
||||
unit->Wait=4;
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Animations
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue