AzaezelX 4 лет назад
Родитель
Сommit
20e4f3c120
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      Engine/source/forest/forest.cpp
  2. 1 1
      Engine/source/ts/tsShapeConstruct.cpp

+ 1 - 1
Engine/source/forest/forest.cpp

@@ -348,7 +348,7 @@ void Forest::createNewFile()
 
    //If we didn't already define a forestfile to work with, just base it off our filename
    if (basePath.isEmpty())
-      basePath = levelAsset->getLevelPath();
+      basePath = (Torque::Path)(levelAsset->getLevelPath());
 
    String fileName = Torque::FS::MakeUniquePath( basePath.getPath(), basePath.getFileName(), "forest" );
    mDataFileName = StringTable->insert( fileName.c_str() );

+ 1 - 1
Engine/source/ts/tsShapeConstruct.cpp

@@ -417,7 +417,7 @@ TSShapeConstructor* TSShapeConstructor::findShapeConstructorByFilename(const Fil
       for (S32 i = 0; i < group->size(); i++)
       {
          TSShapeConstructor* tss = dynamic_cast<TSShapeConstructor*>(group->at(i));
-         FileName shapePath = tss->getShapePath();
+         FileName shapePath = (FileName)(tss->getShapePath());
 
          char buf[1024];
          FileName fullShapePath = String(Platform::makeFullPathName(shapePath, buf, sizeof(buf)));