Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/game/chars/CChar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3867,8 +3867,8 @@ bool CChar::r_LoadVal( CScript & s )
_uiStatFlag = s.GetArgLLVal() & ~ (uint64)STATF_SAVEPARITY;
break;
}
// Don't modify STATF_SAVEPARITY, STATF_PET, STATF_SPAWNED here
static constexpr auto uiFlagsNoChange = (STATF_SAVEPARITY | STATF_PET | STATF_SPAWNED);
// Don't modify STATF_SAVEPARITY, STATF_SPAWNED here. Allow STATF_PET though.
static constexpr auto uiFlagsNoChange = (STATF_SAVEPARITY | STATF_SPAWNED);
static constexpr auto uiFlagsRequireFullUpdate = (STATF_STONE | STATF_HIDDEN | STATF_DEAD);
const auto uiCurFlags = _uiStatFlag;
const auto uiNewFlags = s.GetArgULLVal();
Expand Down
5 changes: 4 additions & 1 deletion src/game/chars/CCharSpell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,10 @@ CChar * CChar::Spell_Summon_Place( CChar * pChar, CPointMap ptTarg, int64 iDurat
}
pChar->StatFlag_Set(STATF_CONJURED); // conjured creates have no loot
pChar->NPC_LoadScript(false);
ASSERT(FollowersUpdate(pChar, pChar->GetFollowerSlots(), true));
if (IsSetOF(OF_PetSlots))
{
ASSERT(FollowersUpdate(pChar, pChar->GetFollowerSlots(), true));
}
pChar->NPC_PetSetOwner(this);
pChar->MoveToChar(ptTarg);
pChar->m_ptHome = ptTarg;
Expand Down
Loading