Skip to content

Commit

Permalink
Fix crash after executing ItemList.set_icon_scale
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Dec 13, 2022
1 parent 4828ac6 commit 8d0fa19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/item_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8d0fa19

Please sign in to comment.