Skip to content

Commit 00b8356

Browse files
mostlikely4rkillerwife
authored andcommitted
Creature summon: Keep creature pet active so it can properly be removed from active during Map::Remove
1 parent e4dda73 commit 00b8356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/MotionGenerators/HomeMovementGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void HomeMovementGenerator<Creature>::Finalize(Creature& owner)
103103
pSummoner->AI()->SummonedJustReachedHome(&owner);
104104
}
105105

106-
if (!wasActive)
106+
if (!wasActive && owner.IsInWorld())
107107
owner.SetActiveObjectState(false);
108108

109109
owner.SetCombatStartPosition(Position());

0 commit comments

Comments
 (0)