Fixed bug when 'next was saved too often, should only be saved if unit is removed from the map.

This commit is contained in:
mr-russ 2003-03-01 06:30:49 +00:00
parent 2f8697b774
commit 587353d1db

View file

@ -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));
}