diff --git a/src/action/action_still.cpp b/src/action/action_still.cpp index af135a10f..2c82f1ea2 100644 --- a/src/action/action_still.cpp +++ b/src/action/action_still.cpp @@ -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 //