mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 15:28:42 +00:00
Shot-in-the-dark fix for bug #18525 (whiteboard recruit crash).
This commit is contained in:
parent
6c21d06c48
commit
13e8912a8f
@ -213,6 +213,8 @@ void mouse_handler::mouse_motion(int x, int y, const bool browse, bool update, m
|
|||||||
gui().clear_attack_indicator();
|
gui().clear_attack_indicator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unit* un; //will later point to unit at mouseover_hex_
|
||||||
|
|
||||||
// the destination is the pointed hex or the adjacent hex
|
// the destination is the pointed hex or the adjacent hex
|
||||||
// used to attack it
|
// used to attack it
|
||||||
map_location dest;
|
map_location dest;
|
||||||
@ -248,11 +250,7 @@ void mouse_handler::mouse_motion(int x, int y, const bool browse, bool update, m
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // end planned unit map scope
|
|
||||||
|
|
||||||
unit* un;
|
|
||||||
{ // start planned unit map scope
|
|
||||||
wb::scoped_planned_unit_map planned_unit_map;
|
|
||||||
unit_map::iterator iter = mouseover_unit;
|
unit_map::iterator iter = mouseover_unit;
|
||||||
if (iter != units_.end())
|
if (iter != units_.end())
|
||||||
un = &*iter;
|
un = &*iter;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user