Skip to content

Commit

Permalink
Fix configs not being read on VMaNGOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Feb 25, 2024
1 parent 75f101d commit 2d02434
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ElunaConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#ifdef TRINITY
#include "Config.h"
#elif CMANGOS
#else if defined CMANGOS || defined VMANGOS
#include "Config/Config.h"
#endif
#include "ElunaConfig.h"
Expand Down Expand Up @@ -41,7 +41,7 @@ void ElunaConfig::SetConfig(ElunaConfigBoolValues index, char const* fieldname,
{
#ifdef TRINITY
SetConfig(index, sConfigMgr->GetBoolDefault(fieldname, defvalue));
#elif CMANGOS
#else if defined CMANGOS || defined VMANGOS
SetConfig(index, sConfig.GetBoolDefault(fieldname, defvalue));
#endif
}
Expand All @@ -52,6 +52,8 @@ void ElunaConfig::SetConfig(ElunaConfigStringValues index, char const* fieldname
SetConfig(index, sConfigMgr->GetStringDefault(fieldname, defvalue));
#elif CMANGOS
SetConfig(index, sConfig.GetStringDefault(fieldname, defvalue));
#elif VMANGOS
SetConfig(index, sConfig.GetStringDefault(fieldname, defvalue.c_str()));
#endif
}

Expand Down

0 comments on commit 2d02434

Please sign in to comment.