Merge branch 'milek-dev' into gfx-work

This commit is contained in:
milek7
2018-10-14 22:29:39 +02:00
5 changed files with 32 additions and 18 deletions

View File

@@ -1745,7 +1745,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