fix crash on saving scene with missing palette

This commit is contained in:
shun-iwasawa 2022-02-08 11:35:24 +09:00 committed by manongjohn
parent 9d28ccd141
commit f7fe5cb9ee

View file

@ -407,7 +407,9 @@ void ScenePalette::rollbackPath() { m_pl->setPath(m_oldPath); }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
bool ScenePalette::isDirty() { return m_pl->getPalette()->getDirtyFlag(); } bool ScenePalette::isDirty() {
return m_pl->getPalette() && m_pl->getPalette()->getDirtyFlag();
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------