(svn r9322) -Codechange: Use cargo class to count crash/flood victims

This commit is contained in:
peter1138
2007-03-19 12:40:51 +00:00
parent ccd448b72f
commit 5a2236dd84
3 changed files with 4 additions and 5 deletions

View File

@@ -2815,7 +2815,7 @@ static uint CountPassengersInTrain(const Vehicle* v)
{
uint num = 0;
BEGIN_ENUM_WAGONS(v)
if (v->cargo_type == CT_PASSENGERS) num += v->cargo_count;
if (IsCargoInClass(v->cargo_type, CC_PASSENGERS)) num += v->cargo_count;
END_ENUM_WAGONS(v)
return num;
}