2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 18:24:55 +00:00

const_cast refactor

This commit is contained in:
Jack Andersen
2016-08-28 18:22:54 -10:00
parent e2f342d107
commit 0aaeed2aeb
15 changed files with 26 additions and 30 deletions

View File

@@ -154,7 +154,7 @@ void CResLoader::AsyncIdlePakLoading()
bool CResLoader::FindResource(u32 id) const
{
for (const std::unique_ptr<CPakFile>& file : x1c_pakLoadedList)
if (((CResLoader*)this)->CacheFromPak(*file, id))
if (const_cast<CResLoader*>(this)->CacheFromPak(*file, id))
return true;
return false;
}