(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 c128024b7d
commit 7d05b7c40f
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();
}