diff --git a/modules/wfc/wave_form_collapse.cpp b/modules/wfc/wave_form_collapse.cpp index de8e86972..938b6686f 100644 --- a/modules/wfc/wave_form_collapse.cpp +++ b/modules/wfc/wave_form_collapse.cpp @@ -89,7 +89,7 @@ void WaveFormCollapse::set_pattern_frequencies(const Vector &p_patterns_ } void WaveFormCollapse::set_input(const PoolIntArray &p_data, int p_width, int p_height) { - input.resize(p_width, p_height); + input.resize(p_height, p_width); ERR_FAIL_COND(input.data.size() != p_data.size());