mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Removed extraneous string copy constructor in CMDLCache::FindMDL
Removed extraneous copy constructor, and added const qualifier to string 'svStudio'.
This commit is contained in:
parent
3b5428051c
commit
62f0e2aaf0
@ -38,7 +38,7 @@ studiohdr_t* CMDLCache::FindMDL(CMDLCache* cache, MDLHandle_t handle, void* a3)
|
||||
studiohdr_t* pStudioHDR = **reinterpret_cast<studiohdr_t***>(pStudioData);
|
||||
if (pStudioHDR)
|
||||
{
|
||||
string svStudio = ConvertToUnixPath(string(pStudioHDR->name));
|
||||
const string svStudio = ConvertToUnixPath(pStudioHDR->name);
|
||||
if (svStudio.compare(ERROR_MODEL) == NULL)
|
||||
{
|
||||
g_pMDLFallback->m_pErrorHDR = pStudioHDR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user