mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 23:03:01 +05:00
Use structured bindings instead of std::tie
This commit is contained in:
parent
abbf99a79d
commit
7c831ee2a9
1 changed files with 1 additions and 2 deletions
|
@ -104,8 +104,7 @@ void CObject::Render()
|
|||
extern void (*WorldRemove)(CEntity*);
|
||||
void CObject::TryToFreeUpTempObjects_SilentPatch( int numObjects )
|
||||
{
|
||||
int numProcessed, numFreed;
|
||||
std::tie( numProcessed, numFreed ) = TryOrFreeUpTempObjects( numObjects, false );
|
||||
const auto [ numProcessed, numFreed ] = TryOrFreeUpTempObjects( numObjects, false );
|
||||
if ( numProcessed >= numObjects && numObjects > numFreed )
|
||||
{
|
||||
TryOrFreeUpTempObjects( numObjects - numFreed, true );
|
||||
|
|
Loading…
Reference in a new issue