mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
*Fix a crash in wintergrasp when a neutral workshop is destroyed.
--HG-- branch : trunk
This commit is contained in:
@@ -281,6 +281,9 @@ void OPvPWintergrasp::ProcessEvent(GameObject *obj, uint32 eventId)
|
||||
|
||||
void OPvPWintergrasp::ModifyWorkshopCount(TeamId team, bool add)
|
||||
{
|
||||
if(team == TEAM_NEUTRAL)
|
||||
return;
|
||||
|
||||
if(add)
|
||||
++m_workshopCount[team];
|
||||
else if(m_workshopCount[team])
|
||||
|
||||
Reference in New Issue
Block a user