Add -Wshadow=local to warnings and fix reported issues.

Fixes #25316.
This commit is contained in:
marxin
2019-02-12 21:10:08 +01:00
committed by Rémi Verschelde
parent 132e2f458d
commit 8d51618949
134 changed files with 1107 additions and 1110 deletions

View File

@ -269,19 +269,19 @@ bool Animation::_set(const StringName &p_name, const Variant &p_value) {
for (int i = 0; i < valcount; i++) {
Dictionary d = clips[i];
if (!d.has("start_offset"))
Dictionary d2 = clips[i];
if (!d2.has("start_offset"))
continue;
if (!d.has("end_offset"))
if (!d2.has("end_offset"))
continue;
if (!d.has("stream"))
if (!d2.has("stream"))
continue;
TKey<AudioKey> ak;
ak.time = rt[i];
ak.value.start_offset = d["start_offset"];
ak.value.end_offset = d["end_offset"];
ak.value.stream = d["stream"];
ak.value.start_offset = d2["start_offset"];
ak.value.end_offset = d2["end_offset"];
ak.value.stream = d2["stream"];
ad->values.push_back(ak);
}