diff options
Diffstat (limited to 'src/modules/database/database.cpp')
| -rw-r--r-- | src/modules/database/database.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index 42c915b445..b1d0675469 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -257,7 +257,7 @@ static int getProfile1(TCHAR *szProfile, size_t cch, TCHAR *profiledir, BOOL * n  				switch (touchDatabase(newProfile, NULL)) {
  				case 0:
 -					if (++found == 1 && nodprof)
 +					if (found == 0 && nodprof)
  						_tcsncpy_s(szProfile, cch, newProfile, _TRUNCATE);
  				case EGROKPRF_OBSOLETE:
  | 
