src/vehiclelist.cpp
changeset 9941 8549448b55fa
parent 9396 3f70b1b8642c
child 9942 c3677fa5563f
equal deleted inserted replaced
9940:a3a283320355 9941:8549448b55fa
    95 		case VLW_SHARED_ORDERS:
    95 		case VLW_SHARED_ORDERS:
    96 			FOR_ALL_VEHICLES(v) {
    96 			FOR_ALL_VEHICLES(v) {
    97 				/* Find a vehicle with the order in question */
    97 				/* Find a vehicle with the order in question */
    98 				if (v->orders != NULL && v->orders->index == index) {
    98 				if (v->orders != NULL && v->orders->index == index) {
    99 					/* Add all vehicles from this vehicle's shared order list */
    99 					/* Add all vehicles from this vehicle's shared order list */
   100 					for (v = GetFirstVehicleFromSharedList(v); v != NULL; v = v->next_shared) {
   100 					for (v = v->FirstShared(); v != NULL; v = v->NextShared()) {
   101 						*list->Append() = v;
   101 						*list->Append() = v;
   102 					}
   102 					}
   103 					break;
   103 					break;
   104 				}
   104 				}
   105 			}
   105 			}