|
@@ -4170,8 +4170,8 @@ int MainWindow::FindNewRoadID(OpenDrive *pxodr1, OpenDrive *pxodr2)
|
|
|
int MainWindow::FindNewJunctionID(OpenDrive *pxodr1, OpenDrive *pxodr2)
|
|
|
{
|
|
|
int njunctionsize1,njunctionsize2;
|
|
|
- njunctionsize1 = pxodr1->GetRoadCount();
|
|
|
- njunctionsize2 = pxodr2->GetRoadCount();
|
|
|
+ njunctionsize1 = pxodr1->GetJunctionCount();
|
|
|
+ njunctionsize2 = pxodr2->GetJunctionCount();
|
|
|
int i;
|
|
|
int * pnid = new int[njunctionsize1 + njunctionsize2];
|
|
|
std::shared_ptr<int> ppnid;ppnid.reset(pnid);
|