Adding to the field (msg.add_players_in_game(1)) works fine at first.
However, once you clear the field (msg.clear_players_in_game()), further additions don't work since the field seems to be getting reset to a singular int (I think). Per the language guide, the default value of an cleared repeated field should be an empty array.
Error message:
Invalid call. Nonexistent function 'append' in base 'int'.
I have a repeated proto3 field:
Adding to the field (
msg.add_players_in_game(1)
) works fine at first.However, once you clear the field (
msg.clear_players_in_game()
), further additions don't work since the field seems to be getting reset to a singular int (I think). Per the language guide, the default value of an cleared repeated field should be an empty array.Error message:
For reference, the generated code:
This is happening on version 0.4.4 on Godot 3.4.