*Fix a crash caused by summon_type_possess.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-19 18:30:03 -06:00
parent 1ab0521ebf
commit eb3abf2556
8 changed files with 92 additions and 57 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ Pet::Pet(PetType type) : Creature()
// pets always have a charminfo, even if they are not actually charmed
CharmInfo* charmInfo = InitCharmInfo(this);
if(type == MINI_PET) // always passive
if(type == MINI_PET || type == POSSESSED_PET) // always passive
charmInfo->SetReactState(REACT_PASSIVE);
else if(type == GUARDIAN_PET) // always aggressive
charmInfo->SetReactState(REACT_AGGRESSIVE);