From 23c2108dff3b5b69d22566dfd24c4db5456636fc Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 12 Nov 2020 14:41:02 +0100 Subject: [PATCH] GetTempSaveNames/GetPermSaveNames --- Source/pfile.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/pfile.cpp b/Source/pfile.cpp index 29dd0622b..39cd8ced9 100644 --- a/Source/pfile.cpp +++ b/Source/pfile.cpp @@ -587,10 +587,10 @@ static BOOL __stdcall GetPermSaveNames(DWORD dwIndex, char *szPerm) { const char *fmt; - if (dwIndex < 17) + if (dwIndex < NUMLEVELS) fmt = "perml%02d"; - else if (dwIndex < 34) { - dwIndex -= 17; + else if (dwIndex < NUMLEVELS * 2) { + dwIndex -= NUMLEVELS; fmt = "perms%02d"; } else return FALSE; @@ -603,10 +603,10 @@ static BOOL __stdcall GetTempSaveNames(DWORD dwIndex, char *szTemp) { const char *fmt; - if (dwIndex < 17) + if (dwIndex < NUMLEVELS) fmt = "templ%02d"; - else if (dwIndex < 34) { - dwIndex -= 17; + else if (dwIndex < NUMLEVELS * 2) { + dwIndex -= NUMLEVELS; fmt = "temps%02d"; } else return FALSE;