Fix Singleton
not calling OnDestroyed()
event
This commit is contained in:
parent
740f98edbd
commit
507c7ba12c
@ -91,9 +91,10 @@ event PreBeginPlay()
|
||||
event Destroyed()
|
||||
{
|
||||
super.Destroyed();
|
||||
if (self == GetInstance())
|
||||
if (self == default.activeInstance)
|
||||
{
|
||||
OnDestroyed();
|
||||
default.activeInstance = none;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user