<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8735,7 +8735,8 @@ void Unit::ClearInCombat()
     // Player's state will be cleared in Player::UpdateContestedPvP
     if (GetTypeId() != TYPEID_PLAYER)
     {
-        if (((Creature*)this)-&gt;GetCreatureInfo()-&gt;unit_flags &amp; UNIT_FLAG_OOC_NOT_ATTACKABLE)
+        Creature* creature = (Creature*)this;
+        if (creature-&gt;GetCreatureInfo() &amp;&amp; creature-&gt;GetCreatureInfo()-&gt;unit_flags &amp; UNIT_FLAG_OOC_NOT_ATTACKABLE)
             SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
 
         clearUnitState(UNIT_STAT_ATTACK_PLAYER);</diff>
      <filename>src/game/Unit.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dc6df3f5caa9022b9502281829b80a13ddbd1780</id>
    </parent>
  </parents>
  <author>
    <name>ApoC</name>
    <email>apoc@nymfe.net</email>
  </author>
  <url>http://github.com/mangos/mangos/commit/560bb633e125a3ab2ad226e6c01e5c1394ec821a</url>
  <id>560bb633e125a3ab2ad226e6c01e5c1394ec821a</id>
  <committed-date>2009-10-24T05:03:59-07:00</committed-date>
  <authored-date>2009-10-24T05:02:41-07:00</authored-date>
  <message>Fixed possible creash.

Crash may happen if you try summon pet by spell and certain NPC is not in
your DB (than CreatureInfo* is NULL).

Signed-off-by: ApoC &lt;apoc@nymfe.net&gt;

(backported from commit 8dd3e4b)

Signed-off-by: ApoC &lt;apoc@nymfe.net&gt;</message>
  <tree>fecf24f5a88e851b0b8ca0f7e351c4845f02fac8</tree>
  <committer>
    <name>ApoC</name>
    <email>apoc@nymfe.net</email>
  </committer>
</commit>
