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:
Jyrki Vesterinen 2018-01-09 20:27:05 +02:00
parent 4de5cdc7d3
commit a65596e5b5

View File

@ -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