mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-09 12:29:35 +01:00
Fix crash in PaintWindow's undo.
This commit is contained in:
parent
6ef7294524
commit
b60b5f79c2
@ -659,8 +659,8 @@ void PaintWindow::undo_action() {
|
||||
return;
|
||||
}
|
||||
|
||||
Ref<PaintAction> action = _redo_history[0];
|
||||
_redo_history.remove(0);
|
||||
Ref<PaintAction> action = _actions_history[0];
|
||||
_actions_history.remove(0);
|
||||
|
||||
if (!action.is_valid()) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user