train_cmd.c
changeset 5215 439d5ca71311
parent 5211 651c9272ad22
child 5252 6823da581c30
--- a/train_cmd.c	Sun Dec 03 13:40:16 2006 +0000
+++ b/train_cmd.c	Sun Dec 03 15:48:21 2006 +0000
@@ -743,7 +743,7 @@
 	uint num_vehicles;
 
 	/* Check if the engine-type is valid (for the player) */
-	if (!IsEngineBuildable(p1, VEH_Train)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE);
+	if (!IsEngineBuildable(p1, VEH_Train, _current_player)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE);
 
 	/* Check if the train is actually being built in a depot belonging
 	 * to the player. Doesn't matter if only the cost is queried */