author | rubidium |
Sun, 26 Aug 2007 21:53:11 +0000 | |
changeset 7479 | 2bc7aacf47eb |
parent 7478 | 893d987adeef |
child 7480 | 1ae973d5f341 |
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;