From 3d5e20496fb4e9c42cc5f11d067138e8a56dc8c8 Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Thu, 20 Feb 2003 08:14:59 +0000 Subject: [PATCH] Fixed bug when removing units inside of another unit --- src/unit/unit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unit/unit.cpp b/src/unit/unit.cpp index 4edcc0793..9a8b06c39 100644 --- a/src/unit/unit.cpp +++ b/src/unit/unit.cpp @@ -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;