(svn r14210) -Codechange: remove a useless check when creating new waypoint

This commit is contained in:
smatz 2008-08-31 21:30:36 +00:00
parent 3c5ab035d8
commit 1856a89c0f

View File

@ -226,7 +226,6 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint3
if (flags & DC_EXEC) {
if (wp == NULL) {
wp = new Waypoint(tile);
if (wp == NULL) return CMD_ERROR;
wp->town_index = INVALID_TOWN;
wp->name = NULL;