mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<PaintAction> action = _redo_history[0];
|
Ref<PaintAction> action = _actions_history[0];
|
||||||
_redo_history.remove(0);
|
_actions_history.remove(0);
|
||||||
|
|
||||||
if (!action.is_valid()) {
|
if (!action.is_valid()) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user