Fix the startup crash bug in the texturepacker