You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Initialize class/struct variables with default values in modules/
This commit is contained in:
@@ -182,16 +182,9 @@ bool WebRTCDataChannelJS::is_negotiated() const {
|
||||
}
|
||||
|
||||
WebRTCDataChannelJS::WebRTCDataChannelJS() {
|
||||
queue_count = 0;
|
||||
_was_string = false;
|
||||
_write_mode = WRITE_MODE_BINARY;
|
||||
_js_id = 0;
|
||||
}
|
||||
|
||||
WebRTCDataChannelJS::WebRTCDataChannelJS(int js_id) {
|
||||
queue_count = 0;
|
||||
_was_string = false;
|
||||
_write_mode = WRITE_MODE_BINARY;
|
||||
_js_id = js_id;
|
||||
|
||||
godot_js_rtc_datachannel_connect(js_id, this, &_on_open, &_on_message, &_on_error, &_on_close);
|
||||
|
||||
Reference in New Issue
Block a user