Changeset - r15848:434d51cdd79f
[Not reviewed]
master
0 1 0
smatz - 14 years ago 2010-08-18 15:22:40
smatz@openttd.org
(svn r20540) -Fix [FS#4049](r20480): use CmdDeleteTown instead of direct use of operator delete
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -1764,7 +1764,7 @@ static Town *CreateRandomTown(uint attem
 
		/* 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;
0 comments (0 inline, 0 general)