Fixed PakTool dialog not having a parent assigned, fixed a crash when attempting to clone SCGN objects

This commit is contained in:
parax0
2016-03-22 01:29:17 -06:00
parent c6e932e14b
commit 843ea96ceb
3 changed files with 6 additions and 3 deletions

View File

@@ -107,6 +107,9 @@ public:
return iLyr;
}
if (mpArea->GetGeneratorLayer() == this)
return mpArea->GetScriptLayerCount();
return -1;
}