mirror of https://github.com/OpenTTD/OpenTTD
(svn r14210) -Codechange: remove a useless check when creating new waypoint
parent
7fa98e33ce
commit
b51bb8c221
|
@ -226,7 +226,6 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint3
|
||||||
if (flags & DC_EXEC) {
|
if (flags & DC_EXEC) {
|
||||||
if (wp == NULL) {
|
if (wp == NULL) {
|
||||||
wp = new Waypoint(tile);
|
wp = new Waypoint(tile);
|
||||||
if (wp == NULL) return CMD_ERROR;
|
|
||||||
|
|
||||||
wp->town_index = INVALID_TOWN;
|
wp->town_index = INVALID_TOWN;
|
||||||
wp->name = NULL;
|
wp->name = NULL;
|
||||||
|
|
Loading…
Reference in New Issue