Fixed bug: loading critters into transporter, crashes.

This commit is contained in:
johns 2001-02-16 15:47:15 +00:00
parent 5ad1c208dd
commit c75b3a07eb

View file

@ -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
//