1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +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,7 +37,8 @@ namespace vstd
{}
~ScopeGuard()
{
f();
if(fire)
f();
}
};