summaryrefslogtreecommitdiffstats
path: root/scene/resources
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-10 12:12:34 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-10 12:12:34 -0600
commit90ce26a27b194186f02e2eba2aaf56718409a28f (patch)
treef472e398944cc03d234d3ead186dc12d9da50dd9 /scene/resources
parent560dfc738da13db0f8f7f8d4d9fbc1d6446aa006 (diff)
parenta47daa0a44900a4246cc8f71041593590c86a711 (diff)
downloadredot-engine-90ce26a27b194186f02e2eba2aaf56718409a28f.tar.gz
Merge pull request #94889 from rune-scape/no-const-list-erase
Remove const_cast in `List::erase`
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/visual_shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp
index f1bc83eb42..847867fa4d 100644
--- a/scene/resources/visual_shader.cpp
+++ b/scene/resources/visual_shader.cpp
@@ -1368,7 +1368,7 @@ void VisualShader::disconnect_nodes(Type p_type, int p_from_node, int p_from_por
ERR_FAIL_INDEX(p_type, TYPE_MAX);
Graph *g = &graph[p_type];
- for (const List<Connection>::Element *E = g->connections.front(); E; E = E->next()) {
+ for (List<Connection>::Element *E = g->connections.front(); E; E = E->next()) {
if (E->get().from_node == p_from_node && E->get().from_port == p_from_port && E->get().to_node == p_to_node && E->get().to_port == p_to_port) {
g->connections.erase(E);
g->nodes[p_from_node].next_connected_nodes.erase(p_to_node);