diff --git a/modules/wfc/overlapping_wave_form_collapse.cpp b/modules/wfc/overlapping_wave_form_collapse.cpp index 30a3c8fb2..356b3df9b 100644 --- a/modules/wfc/overlapping_wave_form_collapse.cpp +++ b/modules/wfc/overlapping_wave_form_collapse.cpp @@ -123,7 +123,7 @@ int OverlappingWaveFormCollapse::get_pattern_id(const Array2D &pattern) { // pattern_id needs to be a valid pattern id, and i and j needs to be in the wave range void OverlappingWaveFormCollapse::set_pattern(int pattern_id, int i, int j) { for (int p = 0; p < patterns.size(); p++) { - if (pattern_id != static_cast(p)) { + if (pattern_id != p) { remove_wave_pattern(i, j, p); } }