aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSupabad <none@none>2010-06-28 18:45:54 +0200
committerSupabad <none@none>2010-06-28 18:45:54 +0200
commitb9a2bd24f71aa80ca78faa175213528035b1b462 (patch)
tree4cd6450c926f3e25e8c6a554d85ff4266e37c864
parent72de3dd6c42c9476b4d7f7d3f187ad1cf20b0414 (diff)
minor change to destructable buildings.
--HG-- branch : trunk
-rw-r--r--src/server/game/Entities/GameObject/GameObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index 1a5d9e09453..c2458a181a5 100644
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -1626,7 +1626,7 @@ void GameObject::TakenDamage(uint32 damage, Unit *who)
if (m_goValue->building.health <= m_goInfo->building.damagedNumHits)
{
if (!m_goInfo->building.destroyedDisplayId)
- m_goValue->building.health = 0;
+ m_goValue->building.health = m_goInfo->building.damagedNumHits;
else if (!m_goValue->building.health)
m_goValue->building.health = 1;