1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Draw random artifact as an atomic operation

This commit is contained in:
Tomasz Zieliński
2024-06-24 20:06:50 +02:00
parent c328007687
commit d7a4ea9f32
3 changed files with 26 additions and 17 deletions

View File

@ -38,6 +38,7 @@ void CMapUndoManager::redo()
void CMapUndoManager::clearAll()
{
//FIXME: Will crash if an object was added twice to actions
undoStack.clear();
redoStack.clear();
onUndoRedo();