*Fix a crash in wintergrasp when a neutral workshop is destroyed.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-21 16:11:11 -05:00
parent 02071a74c0
commit 7bb18efbbe

View File

@@ -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])