Make DBehavior final
Specifics should be implemented in ZScript.
This commit is contained in:
parent
3d6506df5b
commit
ad87477650
2 changed files with 3 additions and 3 deletions
|
|
@ -665,10 +665,10 @@ void AActor::MoveBehaviors(AActor& from)
|
|||
}
|
||||
|
||||
b->Owner = this;
|
||||
if (b->Level != b->Owner->Level)
|
||||
if (b->Level != Level)
|
||||
{
|
||||
b->Level->RemoveActorBehavior(*b);
|
||||
b->Owner->Level->AddActorBehavior(*b);
|
||||
Level->AddActorBehavior(*b);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue