diff options
author | Machiavelli <none@none> | 2010-11-09 11:08:33 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-11-09 11:08:33 +0100 |
commit | 8862663df00b6ea539195d0d6a63dd66908e32c2 (patch) | |
tree | 049cf44581185d24c99992f120672de8c413b121 /src | |
parent | ec125bbc6795d57ca5e46ba63e83153d5bc7a3fa (diff) |
Core/Battleground: Fix a possible crash in Alterac Valley.
Author: HUNTERok
Fixes issue #4268
--HG--
branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp index 622a4bf1707..0c8e1ed8b1b 100755 --- a/src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundAV.cpp @@ -702,7 +702,7 @@ void BattlegroundAV::ChangeMineOwner(uint8 mine, uint32 team, bool initial) if (team == ALLIANCE || team == HORDE) { m_Mine_Reclaim_Timer[mine]=AV_MINE_RECLAIM_TIMER; - char buf[256]; + char buf[256]; sprintf(buf, GetTrinityString(LANG_BG_AV_MINE_TAKEN), GetTrinityString((mine == AV_NORTH_MINE) ? LANG_BG_AV_MINE_NORTH : LANG_BG_AV_MINE_SOUTH), (team == ALLIANCE) ? GetTrinityString(LANG_BG_AV_ALLY) : GetTrinityString(LANG_BG_AV_HORDE)); Creature* creature = GetBGCreature(AV_CPLACE_HERALD); if (creature) @@ -712,8 +712,8 @@ void BattlegroundAV::ChangeMineOwner(uint8 mine, uint32 team, bool initial) { if (mine == AV_SOUTH_MINE) //i think this gets called all the time { - Creature* creature = GetBGCreature(AV_CPLACE_MINE_S_3); - YellToAll(creature,LANG_BG_AV_S_MINE_BOSS_CLAIMS,LANG_UNIVERSAL); + if (Creature* creature = GetBGCreature(AV_CPLACE_MINE_S_3)) + YellToAll(creature, LANG_BG_AV_S_MINE_BOSS_CLAIMS, LANG_UNIVERSAL); } } return; |