summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-12-26 15:28:11 +0000
committerrubidium <rubidium@openttd.org>2006-12-26 15:28:11 +0000
commitc140ca6f200e48444ccec4320067dd91165d98f0 (patch)
treed978822803398fab14cfb710a8ad0fa321cc8a3b /town_cmd.c
parentb58c90a07539a15f3f05c5b11ca3bb5ebdda5fe8 (diff)
downloadopenttd-c140ca6f200e48444ccec4320067dd91165d98f0.tar.xz
(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.
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/town_cmd.c b/town_cmd.c
index 99a821083..923846369 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -79,6 +79,7 @@ void DestroyTown(Town *t)
}
DeleteName(t->townnametype);
+ DeleteSubsidyWithTown(t->index);
MarkWholeScreenDirty();
}