mirror of
https://github.com/minetest/minetest.git
synced 2025-06-30 23:20:22 +02:00
Use std::string::empty() instead of size() where applicable
This commit is contained in:
@ -1414,7 +1414,7 @@ int NodeResolver::resolveNodes()
|
||||
for (it = idset.begin(); it != idset.end(); ++it)
|
||||
output->push_back(*it);
|
||||
|
||||
if (idset.size() == 0) {
|
||||
if (idset.empty()) {
|
||||
num_failed++;
|
||||
errorstream << "NodeResolver::resolveNodes(): Failed to "
|
||||
"resolve '" << name << "'" << std::endl;
|
||||
|
Reference in New Issue
Block a user