1
0
Fork 0

(svn r20540) -Fix [FS#4049](r20480): use CmdDeleteTown instead of direct use of operator delete

release/1.1
smatz 2010-08-18 15:22:40 +00:00
parent 38ca44594f
commit d28985fe8e
1 changed files with 1 additions and 1 deletions

View File

@ -1764,7 +1764,7 @@ static Town *CreateRandomTown(uint attempts, uint32 townnameparts, TownSize size
/* 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;