summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-06-18 16:51:52 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-06-18 16:51:52 +0000
commit3a2eb6307f94eec0c84a59416e738983291cc8b9 (patch)
tree20b70dc36301fb0686ac7a308200953a39eb27a2
parent4e6ede0e1856c78c952f29363b7b62af954db275 (diff)
Fixed bug #1171 - Fixed defcon so it works on Windows
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@3010 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index 6216a6afc..1846edfe5 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1701,9 +1701,10 @@ int read_config(int reload)
/**
* Check all DEFCON dependiencies...
**/
- if (Config.DefConLevel) {
+ if (Config.DefConLevel)
+ {
/* Build DefCon's */
- DefCon.reserve(6);
+ DefCon.resize(6);
DefCon[5].reset();
for (unsigned int level = 1; level < 5; ++level) {
DefCon[level] = 0;