Fix configs being applied to the wrong area (#374)
This commit is contained in:
parent
8f8587ba06
commit
24baeafc9f
@ -101,9 +101,8 @@ void Server::start()
|
|||||||
|
|
||||||
// Assembles the area list
|
// Assembles the area list
|
||||||
m_area_names = ConfigManager::sanitizedAreaNames();
|
m_area_names = ConfigManager::sanitizedAreaNames();
|
||||||
QStringList raw_area_names = ConfigManager::rawAreaNames();
|
for (int i = 0; i < m_area_names.length(); i++) {
|
||||||
for (int i = 0; i < raw_area_names.length(); i++) {
|
QString area_name = QString::number(i) + ":" + m_area_names[i];
|
||||||
QString area_name = raw_area_names[i];
|
|
||||||
AreaData *l_area = new AreaData(area_name, i, music_manager);
|
AreaData *l_area = new AreaData(area_name, i, music_manager);
|
||||||
m_areas.insert(i, l_area);
|
m_areas.insert(i, l_area);
|
||||||
connect(l_area, &AreaData::sendAreaPacket, this, QOverload<AOPacket *, int>::of(&Server::broadcast));
|
connect(l_area, &AreaData::sendAreaPacket, this, QOverload<AOPacket *, int>::of(&Server::broadcast));
|
||||||
|
Loading…
Reference in New Issue
Block a user