1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix ScopeGuard move behavior

This commit is contained in:
nordsoft
2023-04-02 15:46:56 +04:00
parent 4d6b88f10d
commit 91ef7cbb4f

View File

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