mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 17:53:27 +00:00
catch exceptions thrown in whiteboard highlighter dtor
This commit is contained in:
parent
c65d367c44
commit
675eb58975
@ -59,9 +59,11 @@ highlighter::highlighter(unit_map& unit_map, side_actions_ptr side_actions)
|
|||||||
|
|
||||||
highlighter::~highlighter()
|
highlighter::~highlighter()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
if(resources::screen && owner_unit_) {
|
if(resources::screen && owner_unit_) {
|
||||||
unhighlight();
|
unhighlight();
|
||||||
}
|
}
|
||||||
|
} catch (...) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
void highlighter::set_mouseover_hex(const map_location& hex)
|
void highlighter::set_mouseover_hex(const map_location& hex)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user