Mercurial > hg > openttd
changeset 15858:f6f00bb2a6fc draft
(svn r20540) -Fix [FS#4049](r20480): use CmdDeleteTown instead of direct use of operator delete
author | smatz <smatz@openttd.org> |
---|---|
date | Wed, 18 Aug 2010 15:22:40 +0000 |
parents | 9a9ec79c5d25 |
children | e4a43875449c |
files | src/town_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1764,7 +1764,7 @@ /* if the population is still 0 at the point, then the * placement is so bad it couldn't grow at all */ if (t->population > 0) return t; - delete t; + DoCommand(t->xy, t->index, 0, DC_EXEC, CMD_DELETE_TOWN); } while (--attempts != 0); return NULL;