remove extra argument

This commit is contained in:
MihailRis 2026-08-30 23:40:12 +03:00
parent c8605fe78b
commit 53237dd102
2 changed files with 3 additions and 3 deletions

View file

@ -421,14 +421,14 @@ void AssetsLoader::attachToFile(const io::path& file, AssetFullId assetId) {
assetsLoadInfo.referencedAssets.insert({file, std::move(assetId)});
}
int AssetsLoader::addReload(const io::path& path, AssetsLoader& dst) {
int AssetsLoader::addReload(const io::path& path) {
int added = 0;
auto range = assetsLoadInfo.referencedAssets.equal_range(path);
for (auto it = range.first; it != range.second; ++it) {
const auto& recipe = assetsLoadInfo.processedEntries.find(it->second);
if (recipe != assetsLoadInfo.processedEntries.end()) {
dst.entries.push(recipe->second);
entries.push(recipe->second);
added++;
}
}

View file

@ -133,7 +133,7 @@ public:
const std::vector<io::path>& alternatives
);
int addReload(const io::path& path, AssetsLoader& dst);
int addReload(const io::path& path);
void attachToFile(const io::path& file, AssetFullId assetId);
Assets& getAssets();