Skip to content

Commit

Permalink
Fix completed.emit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangSenff authored Jun 1, 2024
1 parent 49e608a commit 908eb9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/godot-firebase/Utilities.gd
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class SignalReducer extends RefCounted: # No need for a node, as this deals stri
var awaiters : Array[Signal] = []

var reducers = {
0 : completed.emit,
0 : func(): completed.emit(),
1 : func(p): completed.emit(),
2 : func(p1, p2): completed.emit(),
3 : func(p1, p2, p3): completed.emit(),
Expand All @@ -75,7 +75,7 @@ class SignalReducerWithResult extends RefCounted: # No need for a node, as this
var awaiters : Array[Signal] = []

var reducers = {
0 : completed.emit,
0 : func(): completed.emit(),
1 : func(p): completed.emit({1 : p}),
2 : func(p1, p2): completed.emit({ 1 : p1, 2 : p2 }),
3 : func(p1, p2, p3): completed.emit({ 1 : p1, 2 : p2, 3 : p3 }),
Expand Down

0 comments on commit 908eb9c

Please sign in to comment.