mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 12:18:35 -05:00
Fix crash due to "keep source active" setting
This commit is contained in:
@@ -172,11 +172,12 @@ void SourceActiveKeeper::SetActive(bool active)
|
||||
if (_active == active) {
|
||||
return;
|
||||
}
|
||||
_active = active;
|
||||
if (_active) {
|
||||
if (active) {
|
||||
_active = true;
|
||||
AcquireRef();
|
||||
} else {
|
||||
ReleaseRef();
|
||||
_active = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user