diff --git a/.github/workflows/core-build.yml b/.github/workflows/core-build.yml index b793067..b659600 100644 --- a/.github/workflows/core-build.yml +++ b/.github/workflows/core-build.yml @@ -8,8 +8,8 @@ jobs: strategy: fail-fast: false matrix: - compiler: [clang6, clang9, clang10] - runs-on: ubuntu-20.04 + compiler: [clang] + runs-on: ubuntu-latest name: ${{ matrix.compiler }} env: COMPILER: ${{ matrix.compiler }} @@ -42,4 +42,4 @@ jobs: - name: Dry run run: source ./apps/ci/ci-worldserver-dry-run.sh - name: Check startup errors - run: source ./apps/ci/ci-error-check.sh \ No newline at end of file + run: source ./apps/ci/ci-error-check.sh diff --git a/src/reward_system.cpp b/src/reward_system.cpp index 9ca35b3..2eaecaf 100644 --- a/src/reward_system.cpp +++ b/src/reward_system.cpp @@ -13,6 +13,7 @@ uint32 Max_roll; class reward_system : public PlayerScript { + public: reward_system() : PlayerScript("reward_system") {} @@ -76,7 +77,7 @@ public: ChatHandler(receiver->GetSession()).PSendSysMessage("You will receive your item in your mailbox"); // format: name "subject text" "mail text" item1[:count1] item2[:count2] ... item12[:count12] - uint64 receiverGuid = receiver->GetGUID(); + uint64 receiverGuid = receiver->GetGUID().GetCounter(); std::string receiverName; std::string subject = "Reward System prize"; @@ -115,7 +116,7 @@ public: } // from console show not existed sender - MailSender sender(MAIL_NORMAL, receiver->GetSession() ? receiver->GetGUIDLow() : 0, MAIL_STATIONERY_TEST); + MailSender sender(MAIL_NORMAL, receiver->GetSession() ? receiver->GetGUID().GetCounter() : 0, MAIL_STATIONERY_TEST); // fill mail MailDraft draft(subject, text); @@ -131,7 +132,7 @@ public: } } - draft.SendMailTo(trans, MailReceiver(receiver, GUID_LOPART(receiverGuid)), sender); + draft.SendMailTo(trans, MailReceiver(receiver, receiverGuid), sender); CharacterDatabase.CommitTransaction(trans); return;