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