Reset Tileset Editor history when tileset changes

This commit is contained in:
GriffinR
2023-02-17 22:27:02 -05:00
parent f8bc65ad3f
commit 26f07add79
2 changed files with 10 additions and 4 deletions

View File

@@ -10,9 +10,15 @@ public:
History() { }
~History() {
clear();
}
void clear() {
while (!history.isEmpty()) {
delete history.takeLast();
}
head = -1;
saved = -1;
}
T back() {