projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LuaVoxelManip: Add option to allocate blank data
[oweals/minetest.git]
/
src
/
connection.cpp
diff --git
a/src/connection.cpp
b/src/connection.cpp
index 64ef9a50e42f9638008adeb0f9273190212068f8..cf5be7ed6aaebe4779da849fc8bf932a0e95478a 100644
(file)
--- a/
src/connection.cpp
+++ b/
src/connection.cpp
@@
-1316,7
+1316,7
@@
bool ConnectionSendThread::packetsQueued()
{
std::list<u16> peerIds = m_connection->getPeerIDs();
- if (
(this->m_outgoing_queue.size() > 0) && (peerIds.size() > 0
))
+ if (
!m_outgoing_queue.empty() && !peerIds.empty(
))
return true;
for(std::list<u16>::iterator j = peerIds.begin();