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:
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 }}

View File

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