fix crash on save palette level

This commit is contained in:
shun-iwasawa 2020-12-28 12:48:03 +09:00 committed by manongjohn
parent 6af69b10e6
commit ba3971fbf0

View file

@ -3025,7 +3025,7 @@ public:
if (sl && sl->getPath().getType() == "pli")
sl->save(palettePath, TFilePath(), true);
else if (sl->getType() & FULLCOLOR_TYPE)
else if (sl && sl->getType() & FULLCOLOR_TYPE)
FullColorPalette::instance()->savePalette(scene);
else
StudioPalette::instance()->save(palettePath, palette);