maintenance: minor code tweaks

This commit is contained in:
tmj-fstate
2019-03-12 18:49:06 +01:00
parent f1ba909a94
commit 4051892066
4 changed files with 20 additions and 15 deletions

View File

@@ -2298,6 +2298,8 @@ void TDynamicObject::LoadExchange( int const Disembark, int const Embark, int co
}
}
*/
if( Platform == 0 ) { return; } // edge case, if there's no accessible platforms discard the request
m_exchange.unload_count += Disembark;
m_exchange.load_count += Embark;
m_exchange.platforms = Platform;