Fixed nav data load bug

This commit is contained in:
Xiao Qi 2023-03-20 16:28:08 +08:00
parent 85a92ce871
commit 6527634839
3 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,6 @@
#include <vector>
#include "Math/Vector/SHVec3.h"
#include "Assets/SHAssetMacros.h"
#include "SHAssetData.h"
namespace SHADE

View File

@ -164,7 +164,7 @@ namespace SHADE
);
}
void SHBinaryLoader::LoadNavData(std::ifstream& file, SHAssetData* result)
void SHBinaryLoader::LoadNavData(std::ifstream& file, SHAssetData*& result)
{
auto const data = new SHNavDataAsset();

View File

@ -15,6 +15,6 @@ namespace SHADE
void LoadAnimClipContainer(std::ifstream& file,SHAssetData*& result);
void WriteNavData(std::ofstream& file, SHAssetData const* data);
void LoadNavData(std::ifstream& file, SHAssetData* result);
void LoadNavData(std::ifstream& file, SHAssetData*& result);
};
}