(svn r14210) -Codechange: remove a useless check when creating new waypoint
authorsmatz
Sun, 31 Aug 2008 21:30:36 +0000
changeset 10050 9862e0d12483
parent 10049 754a2d1e0e94
child 10051 2e4575f188ad
(svn r14210) -Codechange: remove a useless check when creating new waypoint
src/waypoint.cpp
--- a/src/waypoint.cpp	Sun Aug 31 20:54:01 2008 +0000
+++ b/src/waypoint.cpp	Sun Aug 31 21:30:36 2008 +0000
@@ -226,7 +226,6 @@
 	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;