Merge pull request #29 from azerothcore/fix-build-c

fix: build and ci
This commit is contained in:
Stefano Borzì
2021-05-31 21:25:01 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -8,8 +8,8 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
compiler: [clang6, clang9, clang10] compiler: [clang]
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
name: ${{ matrix.compiler }} name: ${{ matrix.compiler }}
env: env:
COMPILER: ${{ matrix.compiler }} COMPILER: ${{ matrix.compiler }}

View File

@@ -271,7 +271,7 @@ private:
auto spellsForPlayersFamily = spellsMap.find(playerSpellFamily); auto spellsForPlayersFamily = spellsMap.find(playerSpellFamily);
if (spellsForPlayersFamily != spellsMap.end()) if (spellsForPlayersFamily != spellsMap.end())
{ {
vector<AddSpell> additionalSpellsToTeach = spellsForPlayersFamily->second; std::vector<AddSpell> additionalSpellsToTeach = spellsForPlayersFamily->second;
for (auto const& spell : additionalSpellsToTeach) for (auto const& spell : additionalSpellsToTeach)
{ {
if (!(player->HasSpell(spell.spellId)) && (spell.faction == TeamId::TEAM_NEUTRAL || spell.faction == player->GetTeamId())) if (!(player->HasSpell(spell.spellId)) && (spell.faction == TeamId::TEAM_NEUTRAL || spell.faction == player->GetTeamId()))