mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-06 03:20:28 +00:00
(svn r14210) -Codechange: remove a useless check when creating new waypoint
This commit is contained in:
parent
3c5ab035d8
commit
1856a89c0f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user