catch exceptions thrown in whiteboard temporary unit hider dtor
This commit is contained in:
parent
675eb58975
commit
8231aa9345
1 changed files with 6 additions and 2 deletions
|
@ -131,8 +131,12 @@ int path_cost(std::vector<map_location> const& path, unit const& u)
|
|||
temporary_unit_hider::temporary_unit_hider(unit& u)
|
||||
: unit_(&u)
|
||||
{unit_->set_hidden(true);}
|
||||
temporary_unit_hider::~temporary_unit_hider()
|
||||
{unit_->set_hidden(false);}
|
||||
temporary_unit_hider::~temporary_unit_hider()
|
||||
{
|
||||
try {
|
||||
unit_->set_hidden(false);
|
||||
} catch (...) {}
|
||||
}
|
||||
|
||||
void ghost_owner_unit(unit* unit)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue