Fix Singleton not calling OnDestroyed() event
This commit is contained in:
parent
740f98edbd
commit
507c7ba12c
1 changed files with 2 additions and 1 deletions
|
|
@ -91,9 +91,10 @@ event PreBeginPlay()
|
|||
event Destroyed()
|
||||
{
|
||||
super.Destroyed();
|
||||
if (self == GetInstance())
|
||||
if (self == default.activeInstance)
|
||||
{
|
||||
OnDestroyed();
|
||||
default.activeInstance = none;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue