Fix crash after executing ItemList.set_icon_scale
This commit is contained in:
parent
4828ac6b99
commit
8d0fa193c3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user