godot/modules/webrtc
Rémi Verschelde 1769f80547 WebRTC: Fix potential nullptr dereference in error message
This was evidently a typo. Didn't get a crash but GCC 12 raised a
`-Warray-bounds` warning:

```
In file included from ./core/io/stream_peer.h:34,
                 from ./core/io/packet_peer.h:34,
                 from ./core/multiplayer/multiplayer_peer.h:34,
                 from modules/webrtc/webrtc_multiplayer_peer.h:34,
                 from modules/webrtc/webrtc_multiplayer_peer.cpp:31:
In member function 'T* Ref<T>::operator->() [with T = WebRTCMultiplayerPeer::ConnectedPeer]',
    inlined from 'virtual Error WebRTCMultiplayerPeer::put_packet(const uint8_t*, int)' at modules/webrtc/webrtc_multiplayer_peer.cpp:376:4:
./core/object/ref_counted.h:101:24: error: array subscript 0 is outside array bounds of 'Ref<WebRTCMultiplayerPeer::ConnectedPeer> [0]' [-Werror=array-bounds]
  101 |                 return reference;
      |                        ^~~~~~~~~
```
2022-03-04 16:02:40 +01:00
..
doc_classes Add an XML schema for documentation 2022-02-15 00:03:31 +01:00
SCsub
config.py
library_godot_webrtc.js
register_types.cpp Rename or refactor macros to avoid leading underscores 2022-01-20 20:29:15 +01:00
register_types.h
webrtc_data_channel.cpp
webrtc_data_channel.h
webrtc_data_channel_extension.cpp
webrtc_data_channel_extension.h
webrtc_data_channel_js.cpp Style: Cleanup single-line blocks, semicolons, dead code 2022-02-16 14:06:29 +01:00
webrtc_data_channel_js.h
webrtc_multiplayer_peer.cpp WebRTC: Fix potential nullptr dereference in error message 2022-03-04 16:02:40 +01:00
webrtc_multiplayer_peer.h
webrtc_peer_connection.cpp Improve some signal bindings to use specific `Object` subtypes 2022-01-28 15:35:40 +01:00
webrtc_peer_connection.h
webrtc_peer_connection_extension.cpp
webrtc_peer_connection_extension.h
webrtc_peer_connection_js.cpp
webrtc_peer_connection_js.h