You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add WebSocketMultiplayerPeer _incoming_packets check bound
(cherry picked from commit 05ad08941b)
This commit is contained in:
@@ -114,6 +114,8 @@ Error WebSocketMultiplayerPeer::get_packet(const uint8_t **r_buffer, int &r_buff
|
||||
_current_packet.data = NULL;
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(_incoming_packets.size() == 0, ERR_UNAVAILABLE);
|
||||
|
||||
_current_packet = _incoming_packets.front()->get();
|
||||
_incoming_packets.pop_front();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user