1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +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

View File

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