This website works better with JavaScript
Home
Explore
Help
Register
Sign In
Hero3
/
vcmi
mirror of
https://github.com/vcmi/vcmi.git
Watch
2
Star
0
Fork
0
Files
Issues
0
Wiki
Browse Source
Fix ScopeGuard move behavior
nordsoft
2 years ago
parent
4d6b88f10d
commit
91ef7cbb4f
1 changed files
with
2 additions
and
1 deletions
Split View
Show Diff Stats
2
1
lib/ScopeGuard.h
+ 2
- 1
lib/ScopeGuard.h
View File
@@ -37,7 +37,8 @@ namespace vstd
{}
~ScopeGuard()
{
- f();
+ if(fire)
+ f();
}
};