mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Codechange: Separate an assertion. More information if assert is triggered.
This commit is contained in:
parent
2aacddd412
commit
6a9df285d0
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user