author | rubidium |
Sun, 26 Aug 2007 21:53:11 +0000 | |
changeset 7975 | 9062c6cc760b |
parent 7974 | 6fcdebd75c19 |
child 7976 | 5d93386b748b |
src/depot_gui.cpp | file | annotate | diff | comparison | revisions |
--- a/src/depot_gui.cpp Sun Aug 26 21:21:59 2007 +0000 +++ b/src/depot_gui.cpp Sun Aug 26 21:53:11 2007 +0000 @@ -143,7 +143,7 @@ Vehicle *v = GetVehicle(_new_vehicle_id); - switch(GetVehicle(p1)->type) { + switch (v->type) { case VEH_TRAIN: ShowTrainViewWindow(v); break; case VEH_ROAD: ShowRoadVehViewWindow(v); break; case VEH_SHIP: ShowShipViewWindow(v); break;