File diff r21352:172f883033dd → r21353:433db3a92931
src/vehiclelist.cpp
Show inline comments
 
@@ -12,6 +12,7 @@
 
#include "stdafx.h"
 
#include "train.h"
 
#include "vehiclelist.h"
 
#include "group.h"
 

	
 
/**
 
 * Pack a VehicleListIdentifier in a single uint32.
 
@@ -145,7 +146,7 @@ bool GenerateVehicleSortList(VehicleList
 
			if (vli.index != ALL_GROUP) {
 
				FOR_ALL_VEHICLES(v) {
 
					if (v->type == vli.vtype && v->IsPrimaryVehicle() &&
 
							v->owner == vli.company && v->group_id == vli.index) {
 
							v->owner == vli.company && GroupIsInGroup(v->group_id, vli.index)) {
 
						*list->Append() = v;
 
					}
 
				}