diff options
author | peter1138 <peter1138@openttd.org> | 2007-03-18 22:32:05 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-03-18 22:32:05 +0000 |
commit | ae48a7447be849bdad48ca5996a246d29165f39e (patch) | |
tree | 7e2ffeafc564d8bf6e54b398f6164375e37723f3 /src/vehicle.cpp | |
parent | 8ef0e43b940e216fff47b6914a79bc1d8c290fc3 (diff) | |
download | openttd-ae48a7447be849bdad48ca5996a246d29165f39e.tar.xz |
(svn r9303) -Codechange: Use cargo class when counting passengers in a road vehicle crash, and when loading aircraft.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 3ab08b31a..29e66640f 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -700,7 +700,7 @@ static bool CanFillVehicle_FullLoadAny(Vehicle *v) //if the aircraft carries passengers and is NOT full, then //continue loading, no matter how much mail is in if (v->type == VEH_AIRCRAFT && - v->cargo_type == CT_PASSENGERS && + IsCargoInClass(v->cargo_type, CC_PASSENGERS) && v->cargo_cap != v->cargo_count) { return true; } |