src/vehicle.cpp
changeset 7415 236b512fd8a1
parent 7413 a590f7f0edb3
child 7466 830dce38f50a
--- a/src/vehicle.cpp	Mon Aug 06 06:23:44 2007 +0000
+++ b/src/vehicle.cpp	Mon Aug 06 11:58:15 2007 +0000
@@ -2554,6 +2554,7 @@
 {
 	assert(IsPlayerBuildableVehicleType(type));
 
+	if (!IsValidPlayer(_current_player)) return false;
 	if (_patches.always_build_infrastructure) return true;
 
 	UnitID max;