<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9606,7 +9606,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>
      <diff>@@ -1,4 +1,4 @@
 #ifndef __REVISION_NR_H__
 #define __REVISION_NR_H__
- #define REVISION_NR &quot;8721&quot;
+ #define REVISION_NR &quot;8722&quot;
 #endif // __REVISION_NR_H__</diff>
      <filename>src/shared/revision_nr.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5ad3855cba230481e1935f61281b15514cf41c36</id>
    </parent>
  </parents>
  <author>
    <name>ApoC</name>
    <email>apoc@nymfe.net</email>
  </author>
  <url>http://github.com/apoc/mangos/commit/d75a45fa904323e7d263763322788f4c5ea26c9c</url>
  <id>d75a45fa904323e7d263763322788f4c5ea26c9c</id>
  <committed-date>2009-10-24T08:48:06-07:00</committed-date>
  <authored-date>2009-10-24T05:00:40-07:00</authored-date>
  <message>[8722] 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;</message>
  <tree>4f2edab3aaa4310d278eaf0c07bf3871afaa88b3</tree>
  <committer>
    <name>ApoC</name>
    <email>apoc@nymfe.net</email>
  </committer>
</commit>
