mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-24 18:48:13 +00:00
Fixed: label editor could create empty undoable action chain (#2306)
Empty action chains are not allowed, attempting to partially undo an empty chain causes a fatal error. This commit fixes some of the breakage reported in #2306, but not all.
This commit is contained in:
parent
4de5cdc7d3
commit
a65596e5b5
@ -33,7 +33,7 @@ editor_action* mouse_action_map_label::click_left(editor_display& disp, int x, i
|
||||
map_location hex = disp.hex_clicked_on(x, y);
|
||||
clicked_on_ = hex;
|
||||
last_draged_ = hex;
|
||||
return new editor_action_chain();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
editor_action* mouse_action_map_label::drag_left(editor_display& disp, int x, int y
|
||||
|
Loading…
x
Reference in New Issue
Block a user