[nostalgia/studio] Get Undo/Redo working
This commit is contained in:
@@ -22,8 +22,8 @@ void UndoStack::redo() noexcept {
|
||||
}
|
||||
|
||||
void UndoStack::undo() noexcept {
|
||||
if (m_stackIdx < ox::MaxValue<decltype(m_stackIdx)>) {
|
||||
m_stack[m_stackIdx--]->undo();
|
||||
if (m_stackIdx) {
|
||||
m_stack[--m_stackIdx]->undo();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user