1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Merge pull request #1853 from Nordsoft91/fix-scope-guard

Fix ScopeGuard move behavior
This commit is contained in:
Ivan Savenko 2023-04-02 20:10:26 +03:00 committed by GitHub
commit c5ca17a324
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,8 @@ namespace vstd
{}
~ScopeGuard()
{
f();
if(fire)
f();
}
};