From c75b3a07ebb48baad80fe8bae441a94e77e7f090 Mon Sep 17 00:00:00 2001
From: johns <>
Date: Fri, 16 Feb 2001 15:47:15 +0000
Subject: [PATCH] Fixed bug: loading critters into transporter, crashes.

---
 src/action/action_still.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

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