mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Use C++ iterators for Lists in many situations
This commit is contained in:
parent
b918c4c3ce
commit
4e6efd1b07
218 changed files with 2755 additions and 3004 deletions
|
|
@ -981,8 +981,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_expression(CodeGen &code
|
|||
assigned = prev_base;
|
||||
|
||||
// Set back the values into their bases.
|
||||
for (List<ChainInfo>::Element *E = set_chain.front(); E; E = E->next()) {
|
||||
const ChainInfo &info = E->get();
|
||||
for (ChainInfo &info : set_chain) {
|
||||
if (!info.is_named) {
|
||||
gen->write_set(info.base, info.key, assigned);
|
||||
if (info.key.mode == GDScriptCodeGenerator::Address::TEMPORARY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue