模块:AHBot('WorldSession'的初始化没有匹配的构造函数)

Module: AHBot (no matching constructor for initialization of 'WorldSession')

基本上我遇到了这个错误,'WorldSession'

的初始化没有匹配的构造函数
        WorldSession _session(AHBplayerAccount, NULL, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), 0, LOCALE_zhCN,0,false,false);
                     ^        
/home/djboxer/Projects/azerothcore/src/server/game/Server/WorldSession.h:188:9: note: candidate constructor not viable: requires 10 arguments, but 9 were provided
        WorldSession(uint32 id, WorldSocket* sock, AccountTypes sec, uint8 expansion, time_t mute_time, LocaleConstant locale, uint32 recruiter, bool isARecruiter, bool skipQueue, ui...
        ^
/home/djboxer/Projects/azerothcore/src/server/game/Server/WorldSession.h:185:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 9 were provided
class WorldSession

我在这里列出文件以供参考: AuctionHouseBot.cpp https://github.com/azerothcore/mod-ah-bot/blob/master/src/AuctionHouseBot.cpp#L720

Worldsession.cpp https://github.com/azerothcore/azerothcore-wotlk/blob/master/src/server/game/Server/WorldSession.cpp#L88

Worldsession.h https://github.com/azerothcore/azerothcore-wotlk/blob/master/src/server/game/Server/WorldSession.h#L185

如有任何帮助,我们将不胜感激

找到 第 720 行 AuctionHouse.cpp

WorldSession _session(AHBplayerAccount, NULL, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), 0, LOCALE_zhCN,0,false,false);

改为

WorldSession _session(AHBplayerAccount, NULL, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), 0, LOCALE_zhCN,0,false,false,0);