catch exceptions thrown in whiteboard mapbuilder dtor

This commit is contained in:
Chris Beck 2014-06-07 23:40:01 -04:00
parent 8231aa9345
commit 84b2cb2f67

View file

@ -48,8 +48,10 @@ mapbuilder::mapbuilder(unit_map& unit_map)
mapbuilder::~mapbuilder()
{
try {
restore_normal_map();
//Remember that the member variable resetters_ is destructed here
} catch (...) {}
}
void mapbuilder::pre_build()