(svn r7563) -Fix (FS#468): removing towns in the scenario editor could leave subsidies with that town as source/destination, resulting in an assertion when displaying the Subsidies Window.

This commit is contained in:
rubidium
2006-12-26 15:28:11 +00:00
parent b58c90a075
commit c140ca6f20
3 changed files with 18 additions and 3 deletions

View File

@@ -79,6 +79,7 @@ void DestroyTown(Town *t)
}
DeleteName(t->townnametype);
DeleteSubsidyWithTown(t->index);
MarkWholeScreenDirty();
}