mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 09:22:58 -05:00
HintDatabase::init() picks a random hint with rand() % the number of loaded hints. When hints.ini is empty or can't be read, that number is zero and the app crashes at startup. get_hint() already returns nothing in that case, but only after init() has run. Ported from Snapmaker/OrcaSlicer@05acbec702 Co-authored-by: fire2wind <1229725087@qq.com>