diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2020-12-27 09:56:43 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-12-27 10:30:55 +0000 |
commit | 52f3abba6ef2e5a69b58cf71fdcdaa75d603b062 (patch) | |
tree | 6820fbe56413636b766fc4d50d88995d0dd34338 /src/cargopacket.cpp | |
parent | d8605ad18da2a00fceb72b38325374b341ac6f16 (diff) | |
download | openttd-52f3abba6ef2e5a69b58cf71fdcdaa75d603b062.tar.xz |
Cleanup: Remove unnecessary assert_tcompile macro
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r-- | src/cargopacket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp index f5f7c0c03..08b72ec46 100644 --- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -556,8 +556,8 @@ void VehicleCargoList::InvalidateCache() template<VehicleCargoList::MoveToAction Tfrom, VehicleCargoList::MoveToAction Tto> uint VehicleCargoList::Reassign(uint max_move, TileOrStationID) { - assert_tcompile(Tfrom != MTA_TRANSFER && Tto != MTA_TRANSFER); - assert_tcompile(Tfrom - Tto == 1 || Tto - Tfrom == 1); + assert_compile(Tfrom != MTA_TRANSFER && Tto != MTA_TRANSFER); + assert_compile(Tfrom - Tto == 1 || Tto - Tfrom == 1); max_move = min(this->action_counts[Tfrom], max_move); this->action_counts[Tfrom] -= max_move; this->action_counts[Tto] += max_move; |