diff options
-rw-r--r-- | src/configreader.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 20dc5b8cb..339ae33f8 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -532,9 +532,11 @@ bool InitConnect(ServerConfig* conf, const char*) conf->Classes.erase(i); i = conf->Classes.begin(); // start over so we don't trample on a bad iterator } - - /* also mark all existing classes disabled, if they still exist in the conf, they will be reenabled. */ - c->SetDisabled(true); + else + { + /* also mark all existing classes disabled, if they still exist in the conf, they will be reenabled. */ + c->SetDisabled(true); + } } return true; |