From c7ee453e8a53442ca271dc4996371d40d9df63b6 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 23 Apr 2022 21:30:51 +0200 Subject: [PATCH] Found an unneeded static cast. --- modules/wfc/overlapping_wave_form_collapse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }