Fix crash in CEditorApplication::RebuildResourceDatabase

This commit is contained in:
Phillip Stephens 2021-06-20 12:47:46 -07:00
parent 59b34eab31
commit b73e7975c9
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ bool CEditorApplication::RebuildResourceDatabase()
{
// Fake-close the project, but keep it in memory so we can modify the resource store
auto pProj = std::move(mpActiveProject);
mpActiveProject->TweakManager()->ClearTweaks();
pProj->TweakManager()->ClearTweaks();
emit ActiveProjectChanged(nullptr);
// Rebuild