summaryrefslogtreecommitdiff
path: root/src/cargopacket.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-02-11 20:34:48 +0000
committerfrosch <frosch@openttd.org>2014-02-11 20:34:48 +0000
commit858e80f3dd49f89dc022b93083f8db3ccdc5217d (patch)
tree703792b180408115fd19175a74e54235333db8bb /src/cargopacket.cpp
parent470bd0ce24d61f133cdd2c453cfec11c21d390ac (diff)
downloadopenttd-858e80f3dd49f89dc022b93083f8db3ccdc5217d.tar.xz
(svn r26333) -Fix: Compilation without static_assert.
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r--src/cargopacket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp
index 3eea10a5b..67d00554b 100644
--- a/src/cargopacket.cpp
+++ b/src/cargopacket.cpp
@@ -557,8 +557,8 @@ void VehicleCargoList::InvalidateCache()
template<VehicleCargoList::MoveToAction Tfrom, VehicleCargoList::MoveToAction Tto>
uint VehicleCargoList::Reassign(uint max_move, TileOrStationID)
{
- assert_compile(Tfrom != MTA_TRANSFER && Tto != MTA_TRANSFER);
- assert_compile(Tfrom - Tto == 1 || Tto - Tfrom == 1);
+ assert_tcompile(Tfrom != MTA_TRANSFER && Tto != MTA_TRANSFER);
+ assert_tcompile(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;