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 | 3d3d8d7c47f3fb98abeefe943f7c94f4485f3dec (patch) | |
tree | 7e2ffeafc564d8bf6e54b398f6164375e37723f3 /src/roadveh_cmd.cpp | |
parent | fa206387ad5b2b8e4eb0efa21fcbe8be1e58c430 (diff) | |
download | openttd-3d3d8d7c47f3fb98abeefe943f7c94f4485f3dec.tar.xz |
(svn r9303) -Codechange: Use cargo class when counting passengers in a road vehicle crash, and when loading aircraft.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index aeed9704a..74d7aa7a8 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -596,7 +596,7 @@ static void RoadVehCrash(Vehicle *v) InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); pass = 1; - if (v->cargo_type == CT_PASSENGERS) pass += v->cargo_count; + if (IsCargoInClass(v->cargo_type, CC_PASSENGERS)) pass += v->cargo_count; v->cargo_count = 0; SetDParam(0, pass); |