Skip to content

Conversation

@lotjib
Copy link

@lotjib lotjib commented Jul 28, 2025

Fix WorldSession _session(constructor) build fix, with latest updates, cant build

@lotjib lotjib mentioned this pull request Jul 28, 2025
@Helias
Copy link
Member

Helias commented Jul 28, 2025

https://github.com/azerothcore/mod-ah-bot/actions/runs/16560756657/job/46829977387?pr=155

do not leave the comment, delete it if you are replacing it

/home/runner/work/mod-ah-bot/mod-ah-bot/modules/mod-ah-bot/src/AuctionHouseBot.cpp:1032:18: fatal error: no matching constructor for initialization of 'WorldSession'
 1032 |     WorldSession _session(_account, std::move(accountName), nullptr, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), 0, LOCALE_enUS, 0, false, false, 0);
      |                  ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/mod-ah-bot/mod-ah-bot/src/server/game/Server/WorldSession.h:332:5: note: candidate constructor not viable: requires 12 arguments, but 11 were provided
  332 |     WorldSession(uint32 id, std::string&& name, uint32 accountFlags, std::shared_ptr<WorldSocket> sock, AccountTypes sec, uint8 expansion, time_t mute_time, LocaleConstant locale, uint32 recruiter, bool isARecruiter, bool skipQueue, uint32 TotalTime);
      |     ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/runner/work/mod-ah-bot/mod-ah-bot/src/server/game/Server/WorldSession.h:1209:5: note: candidate constructor not viable: requires single argument 'right', but 11 arguments were provided
 1209 |     WorldSession(WorldSession const& right) = delete;
      |     ^            ~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
gmake[2]: *** [modules/CMakeFiles/modules.dir/build.make:93: modules/CMakeFiles/modules.dir/mod-ah-bot/src/AuctionHouseBot.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1473: modules/CMakeFiles/modules.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....

@Helias
Copy link
Member

Helias commented Aug 10, 2025

it's the smae as master, so there are no changes right now between this PR and the master branch

@Helias Helias closed this Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants