Fix crash after executing ItemList.set_icon_scale

This commit is contained in:
Haoyu Qiu 2022-12-13 15:38:33 +08:00
parent 4828ac6b99
commit 8d0fa193c3

View File

@ -1550,6 +1550,7 @@ bool ItemList::get_allow_reselect() const {
}
void ItemList::set_icon_scale(real_t p_scale) {
ERR_FAIL_COND(!Math::is_finite(p_scale));
icon_scale = p_scale;
}