mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Replace size() == 0 with is_empty().
This commit is contained in:
@@ -137,7 +137,7 @@ Error MultiplayerPeerExtension::get_packet(const uint8_t **r_buffer, int &r_buff
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
if (script_buffer.size() == 0) {
|
||||
if (script_buffer.is_empty()) {
|
||||
return Error::ERR_UNAVAILABLE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user