Remove extraneous check, correct return value

This commit is contained in:
Ed Lu 2024-08-07 11:37:41 -07:00
parent 4f25c2ab36
commit 8d24a8e255
1 changed files with 1 additions and 2 deletions

View File

@ -176,8 +176,7 @@ int ENetPacketPeer::get_channels() const {
}
int ENetPacketPeer::get_packet_flags() const {
ERR_FAIL_NULL_V(peer, ERR_UNCONFIGURED);
ERR_FAIL_COND_V(packet_queue.is_empty(), ERR_UNAVAILABLE);
ERR_FAIL_COND_V(packet_queue.is_empty(), 0);
return packet_queue.front()->get()->flags;
}