Skip to content

Commit

Permalink
[12272] Fix crash with Destructible GO of MaxHealth
Browse files Browse the repository at this point in the history
Close #30
Thanks to jududdar and cyberium for pointing
  • Loading branch information
Schmoozerd committed Nov 19, 2012
1 parent 747a0ef commit a9f7129
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/GameObject.cpp
Expand Up @@ -2266,7 +2266,7 @@ void GameObject::ForceGameObjectHealth(int32 diff, Unit* caster)
else
m_useTimes = 0;
}
else if (diff == 0) // Rebuild - TODO: Rebuilding over time with special display-id?
else if (diff == 0 && GetMaxHealth()) // Rebuild - TODO: Rebuilding over time with special display-id?
{
DEBUG_FILTER_LOG(LOG_FILTER_DAMAGE, "DestructibleGO: %s start rebuild by %s", GetGuidStr().c_str(), caster->GetGuidStr().c_str());

Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12271"
#define REVISION_NR "12272"
#endif // __REVISION_NR_H__

0 comments on commit a9f7129

Please sign in to comment.