*Fix a crash in wintergrasp when a neutral workshop is destroyed.
--HG-- branch : trunk
This commit is contained in:
1 parent
02071a74c0
commit
7bb18efbbe
1 file changed
+3
@@ -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