- fixed crash during initialization of polyobjects

This commit is contained in:
alexey.lysiuk 2019-01-13 10:35:00 +02:00
parent 16ee57817d
commit 2bb3571c2c

View file

@ -315,7 +315,7 @@ void MapLoader::TranslateToStartSpot (int tag, const DVector2 &origin)
}
po->CalcCenter();
// For compatibility purposes
po->CenterSubsector = R_PointInSubsector(po->GetLevel(), po->CenterSpot.pos);
po->CenterSubsector = R_PointInSubsector(Level, po->CenterSpot.pos);
}
//==========================================================================