mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-27 02:56:17 -05:00
Reset Tileset Editor history when tileset changes
This commit is contained in:
@@ -10,9 +10,15 @@ public:
|
||||
History() { }
|
||||
|
||||
~History() {
|
||||
clear();
|
||||
}
|
||||
|
||||
void clear() {
|
||||
while (!history.isEmpty()) {
|
||||
delete history.takeLast();
|
||||
}
|
||||
head = -1;
|
||||
saved = -1;
|
||||
}
|
||||
|
||||
T back() {
|
||||
|
||||
Reference in New Issue
Block a user