diff mm7_2.cpp @ 1280:89210052dbb4

bugfix PID_ID(v2->spell_caster_pid)==1000
author Gloval
date Sat, 15 Jun 2013 21:23:33 +0400
parents f11651288371
children d8033eb56d7e
line wrap: on
line diff
--- a/mm7_2.cpp	Sat Jun 15 12:33:13 2013 +0100
+++ b/mm7_2.cpp	Sat Jun 15 21:23:33 2013 +0400
@@ -9635,7 +9635,11 @@
     }
   }
   if ( v151 == OBJECT_BModel && PID_TYPE(v2->spell_caster_pid) != OBJECT_Player)
-    BYTE2(pActors[PID_ID(v2->spell_caster_pid)].uAttributes) |= 4u;
+      {
+      if (PID_ID(v2->spell_caster_pid)<500)  //bugfix  PID_ID(v2->spell_caster_pid)==1000
+         BYTE2(pActors[PID_ID(v2->spell_caster_pid)].uAttributes) |= 4;
+      }
+
   v6 = v2->uType;
   v7 = v2->uType;
   if ( v7 > 3060 )