Initial whitespace, formatting, file headers and NULL usage fixes.

This commit is contained in:
Jonathan G Rennison
2016-02-14 02:30:03 +00:00
parent 6be2efc084
commit a31e7ac87d
23 changed files with 712 additions and 588 deletions

View File

@@ -169,7 +169,9 @@ struct Train FINAL : public GroundVehicle<Train, VEH_TRAIN> {
*/
inline Train *GetLastUnit() {
Train *tmp = this;
while ( tmp->GetNextUnit() ) tmp = tmp->GetNextUnit();
while (tmp->GetNextUnit()) {
tmp = tmp->GetNextUnit();
}
return tmp;
}