From 587353d1dbed43a306dac53dab835038d7478b86 Mon Sep 17 00:00:00 2001
From: mr-russ <>
Date: Sat, 1 Mar 2003 06:30:49 +0000
Subject: [PATCH] Fixed bug when 'next was saved too often, should only be
 saved if unit is removed from the map.

---
 src/unit/unit.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/unit/unit.cpp b/src/unit/unit.cpp
index c8bbac0a2..7eec4ca13 100644
--- a/src/unit/unit.cpp
+++ b/src/unit/unit.cpp
@@ -4231,7 +4231,7 @@ global void SaveUnit(const Unit* unit,FILE* file)
 	fprintf(file,"'name \"%s\" ",unit->Name);
     }
 
-    if( unit->Next ) {
+    if( unit->Next && unit->Removed ) {
 	fprintf(file,"'next '%d ",UnitNumber(unit->Next));
     }