Changeset - r11964:7095e7a18762
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-05-22 13:13:55
smatz@openttd.org
(svn r16375) -Codechange: don't be afraid of deleting NULL pointers
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/bridge_gui.cpp
Show inline comments
 
@@ -366,7 +366,7 @@ void ShowBuildBridgeWindow(TileIndex sta
 
	if (bl != NULL && bl->Length() != 0) {
 
		new BuildBridgeWindow(&_build_bridge_desc, start, end, type, bl);
 
	} else {
 
		if (bl != NULL) delete bl;
 
		delete bl;
 
		ShowErrorMessage(errmsg, STR_ERROR_CAN_T_BUILD_BRIDGE_HERE, TileX(end) * TILE_SIZE, TileY(end) * TILE_SIZE);
 
	}
 
}
0 comments (0 inline, 0 general)