Fixed bug when 'next was saved too often, should only be saved if unit is removed from the map.
This commit is contained in:
parent
2f8697b774
commit
587353d1db
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue