Skip to content

Commit ae9363d

Browse files
committed
Whoops
1 parent 297e228 commit ae9363d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

toontown/leveleditor/AutoSaver.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ def autoSaverProcess():
3939
# Only auto save if auto save is toggled
4040
if AutoSaver.autoSaverToggled is True:
4141
AutoSaver.manageAutoSaveFiles()
42-
DNASerializer.autoSaveCount += 1
42+
# Sets autoSaveCount
43+
if DNASerializer.autoSaveCount >= AutoSaver.maxAutoSaveCount:
44+
DNASerializer.autoSaveCount = AutoSaver.maxAutoSaveCount
45+
else:
46+
DNASerializer.autoSaveCount += 1
4347

4448
@staticmethod
4549
def manageAutoSaveFiles():
4650
DNASerializer.autoSaverMgrRunning = True
47-
autoSaveCount = DNASerializer.autoSaveCount
48-
49-
# Sets max number of auto save files
50-
if autoSaveCount >= AutoSaver.maxAutoSaveCount:
51-
autoSaveCount = int(AutoSaver.maxAutoSaveCount)
51+
autoSaveCount = int(DNASerializer.autoSaveCount)
5252

5353
# Defining outputFile name properties
5454
base = os.path.basename(DNASerializer.outputFile)

0 commit comments

Comments
 (0)