diff options
author | Juanjo <juanjo.ng.83@gmail.com> | 2013-01-01 12:44:50 +0100 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-06-27 23:14:30 +0200 |
commit | 6a9df285d0c368df5026270d34639d396a8120bb (patch) | |
tree | a33f817d826981bc3e1cc51f0200ce122e6f4ba1 /src/pathfinder | |
parent | 2aacddd4123a45e386cde7445e1fa7b8cf60a222 (diff) | |
download | openttd-6a9df285d0c368df5026270d34639d396a8120bb.tar.xz |
Codechange: Separate an assertion. More information if assert is triggered.
Diffstat (limited to 'src/pathfinder')
-rw-r--r-- | src/pathfinder/follow_track.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pathfinder/follow_track.hpp b/src/pathfinder/follow_track.hpp index d9a70b7fc..a8399cd9f 100644 --- a/src/pathfinder/follow_track.hpp +++ b/src/pathfinder/follow_track.hpp @@ -73,7 +73,8 @@ struct CFollowTrackT inline void Init(Owner o, RailTypes railtype_override, CPerformanceTimer *pPerf) { - assert((!IsRoadTT() || m_veh != NULL) && (!IsRailTT() || railtype_override != INVALID_RAILTYPES)); + assert(!IsRoadTT() || m_veh != NULL); + assert(!IsRailTT() || railtype_override != INVALID_RAILTYPES); m_veh_owner = o; m_pPerf = pPerf; /* don't worry, all is inlined so compiler should remove unnecessary initializations */ |