diff options
author | J0an Josep <juanjo.ng.83@gmail.com> | 2017-08-15 17:56:34 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-04-30 21:52:40 +0200 |
commit | cfb8092397709fe2276d8a5c5386c334b0a9199e (patch) | |
tree | 714fa04d7b38f6e37f518a33ed3d38a67cfeca4b /src/script | |
parent | 3f40cd505db78932cd355711d6294e6dc4446410 (diff) | |
download | openttd-cfb8092397709fe2276d8a5c5386c334b0a9199e.tar.xz |
Fix b4b98e5165: Use FALLTHROUGH attribute with correct indentation.
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_stationlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_stationlist.cpp b/src/script/api/script_stationlist.cpp index ab9503a1b..51a06b5a7 100644 --- a/src/script/api/script_stationlist.cpp +++ b/src/script/api/script_stationlist.cpp @@ -151,13 +151,13 @@ void CargoCollector::Update(StationID from, StationID via, uint amount) switch (Tselector) { case ScriptStationList_Cargo::CS_VIA_BY_FROM: if (via != this->other_station) return; - /* fall through */ + FALLTHROUGH; case ScriptStationList_Cargo::CS_BY_FROM: key = from; break; case ScriptStationList_Cargo::CS_FROM_BY_VIA: if (from != this->other_station) return; - /* fall through */ + FALLTHROUGH; case ScriptStationList_Cargo::CS_BY_VIA: key = via; break; |