Allow warning-ignore in same line

(cherry picked from commit 3715ea268f)
This commit is contained in:
Marvin Ewald 2021-04-12 15:34:17 +02:00 committed by Rémi Verschelde
parent 337ef03958
commit a1af387177
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -8769,7 +8769,7 @@ Error GDScriptParser::_parse(const String &p_base_path) {
GDScriptWarning &w = E->get(); GDScriptWarning &w = E->get();
int skip_index = -1; int skip_index = -1;
for (int i = 0; i < warning_skips.size(); i++) { for (int i = 0; i < warning_skips.size(); i++) {
if (warning_skips[i].first >= w.line) { if (warning_skips[i].first > w.line) {
break; break;
} }
skip_index = i; skip_index = i;