maintenance: null dereferencing fixes, vehicle load shadow render fix

This commit is contained in:
tmj-fstate
2018-10-13 15:03:51 +02:00
parent f8f0907d8a
commit 81c92383be
3 changed files with 3 additions and 6 deletions

View File

@@ -1730,7 +1730,7 @@ int TTrack::CrossSegment(int from, int into)
void TTrack::RaAnimListAdd(TTrack *t)
{ // dodanie toru do listy animacyjnej
if (SwitchExtension)
if ((t != nullptr) && (SwitchExtension != nullptr))
{
if (t == this)
return; // siebie nie dodajemy drugi raz do listy