diff options
| author | megamage <none@none> | 2009-08-21 16:11:11 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-21 16:11:11 -0500 |
| commit | 7bb18efbbe5bb17887e9127f3a0e2e3ea681fcde (patch) | |
| tree | 473a38908b0ea1aff63f7e77eab58045cc5db17c /src | |
| parent | 02071a74c07afcbc8094779823fc8a3ae3b8dc9c (diff) | |
*Fix a crash in wintergrasp when a neutral workshop is destroyed.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Wintergrasp.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Wintergrasp.cpp b/src/game/Wintergrasp.cpp index 5ef9d95bef3..ea79c7f47b7 100644 --- a/src/game/Wintergrasp.cpp +++ b/src/game/Wintergrasp.cpp @@ -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]) |
